ruby -rprofile gives me results that show (look title) wasting almost 30% of running time.
I only have one @clock.tick in main loop.
- Code: Select all
def run
loop do
update
draw
@clock.tick
end
end
this thing does everything.
In main class initialize I have these:
- Code: Select all
@clock = Rubygame::Clock.new
@clock.target_framerate 60
Also. SDL.Flip and SDL.BlitSurface seem to be a bit slow. Is there any way to use some other libraries exclusively to render stuff onto the screen?
