Window#update
and Window#draw
in parallel, you would have to make sure that update
doesn't change the map while draw
is trying to render it etc. So that's not generally possible or efficient.Image#draw
, then manually orders them by z
, then passes them on to OpenGL, all while applying clipping rectangles and transforms. That part could easily be run on a secondary thread, but that's an optimisation internal to Gosu, and is not likely to happen soon. I don't think it would solve bottlenecks in Ruby games, which are usually limited by loops written in Ruby, not Gosu itself.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill