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

[REBOL] Re: Draw performance

From: rebol:optushome:au at: 22-Jan-2003 17:06

Hi Davide, Nice. The number isn't as much of a problem as the window size, large faces give View a hard time to keep refreshing. One trick which works with some draw operations is to make sure the offset of the main drawing area is at 0x0 or Origin 0x0, I have scripts here which made the speed increase by doing this. I took a different approach when I wrote my ballz.r script doing it with multiple faces instead of using draw. It would be interesting to re-write using draw, but I think draw would be slower because it would need to interpret the block each time. If you want to grab ballz.r it is at http://www.rebolforces.com/demos/ballz/ You will need to download the subdirectory with gfx too. Apologies that they is no autodownload for this, but I wrote the script for IOS where that wasn't needed. When you run it hit the "+" a few times to see how fast it can get. Cheers, Allen K