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

[REBOL] Re: Rebol on Amithlon?

From: g:santilli:tiscalinet:it at: 25-Nov-2001 13:01

Hello [holger--rebol--com]! On 24-Nov-01, you wrote: h> Probably because the scripts you used did not use hardware h> scrolling, but rather rerendered all data during every h> refresh. You can scroll by only changing the offset of a face, h> then setting face/changes to 'offset and calling 'show. This h> procedure significantly improves performance, by an order of h> magnitude. BTW Holger, is there any reason why /View can't use QUERY on faces to see if only the offset was changed, so that the acceleration will be automatical without the need for the developer to remember to set the CHANGES facet? If there's no other choice, I'd suggest a mezzanine like: move-face: func [ "Move a face to a new offset" face [object!] new-offset [pair!] /relative "Move relative to current position" ] [ face/offset: either relative [face/offset + new-offset] [new-offset] face/changes: 'offset show face ] so that developers are encouraged to use hw scolling. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/