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

[REBOL] Re: Graph Drawing & /View Performance

From: cyphre:seznam:cz at: 7-May-2002 13:14

Hi Christian, Nice script ;-) I haven't time to look into its guts but I'll try to find some improvements for better performance(if it will be possible) during the weekend... I thought that Rebol has slow math but while doing some speed tests I noticed that the most CPU power takes visualization. Relatime(with dynamic buffer ;-) ) calculating rotation of DRAW block containing 10 filled polygons around 360 degrees(with step of 1 degree) takes less than half second on Celeron 533Mhz...that could be theoreticaly about 600fps! but when you want to visualize it the performance goes down to about 15-20fps. (Watch the upcomming release of Rebol/Zine #6 where you can try the example script with such 2D vector DRAW buffered generator..) I always thought that rebol has slow math but now I see that the performance slowdown is in the visualisation part. I'm still dreaming about HW accelerated View port (OpenGL or DirectX)....I think that without hw accelerated graphics(at least on some Rebol ports where it is possible) we couldn't have even smooth 2D plain vectors. I wish RT would have time to wrap at least Windows and Xwin ports for such HW acceleration.... I believe there won't be any platform issues because you can write the same View code...The result would differ only in the rendering part of Rebol....on hw accelerated systems your code would fly! ;) regards, Cyphre