Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [grid]

From: carl:cybercraft at: 11-Jul-2004 12:07

>> EOC> Scrolling a pane of content within /View often leads to noticeable >> lags in >> EOC> screen refresh/responsiveness. For an example, try the REBOL world in >> AltME EOC on a run-of-the-mill Pentium II or III. >> >> GS> This is because you are getting more mouse events than you can >> GS> handle. Event filtering will put that lag to zero. > >I assumed it was because scrolling requires /View to refresh the screen at a >faster rate than the compositing engine can handle. > >Is event filtering available now, or is that something planned for a future >release of VID?
If I find events are queuing up I just set a flag in the routine that's taking the time and ignore any events that call it until the flag's unset again. ie, something like this... processing: false routine: does [ processing: true ... ... processing: false ] view layout [ ... feel [engage: func [face action event] [ if all [action = '... not processing][routine] ] ] Obviously you shouldn't skip events like key-presses where users are typing in text, but for ones you can skip it usually works quite well. -- Carl Read