[squeak-dev] Re: speeding up copying World using dirty rectangles?

Marcel Taeumel marcel.taeumel at student.hpi.uni-potsdam.de
Sat Jan 21 17:19:06 UTC 2012


Hi.

You should not draw the full scene graph into a buffer that will be copied
to your OGL stuff in every step/loop. This is slow. You should make use of
the default world redraw optimization with dirty rectangles. Maybe like
this:

1. Modify WorldState>>displayWorldSafely: to draw into a buffer form and NOT
into the DisplayScreen.
2. Add a postprocessing step to WorldState>>doOneCycleFor: or use #step in a
Morph (with stepTime == 0) to copy this buffer to your OGL stuff.

I don't know how specific the form DisplayScreen is. Maybe you can directly
copy its contents into your OGL world.

Marcel

--
View this message in context: http://forum.world.st/speeding-up-copying-World-using-dirty-rectangles-tp4313876p4316471.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.



More information about the Squeak-dev mailing list