First Benchmarks!
While these are very rough and preliminary benchmarks, I'm very happy with the results so far. I'll the pain I've suffered with C++ seems to have paid off. ;) This is a simple sprite benchmark that has static sprites with no logic or movement. It's purpose is to test the raw output of the rendering pipeline. 85fps is the limit, as the renderer is synced to vertical refresh.
EDIT: To be fair, the difference isn't all C++ vs. Python related. Opioid2D uses smarter algorithms in the rendering engine, which help a lot too.
sprites 1000 5000 10000 15000
-----------------------------------------------
pygext ~35fps ~7fps ~3fps ~2fps
pygext + psyco ~60fps ~13fps ~6fps ~4fps
Opioid2D 85fps 85fps ~70fps ~45fps
EDIT: To be fair, the difference isn't all C++ vs. Python related. Opioid2D uses smarter algorithms in the rendering engine, which help a lot too.
4 Comments:
You should get an RSS feed for this!
http://opioid-games.blogspot.com/atom.xml
:)
I guess a link on the front page would help...
I'd be very curious to see the speed of the python/psyco version using the improved algorithms, especially given that at 1000 objects it had reasonable (if not outstanding) speed.
sindisil: I agree, it would be interesting. However, it would take a non-trivial amount of work to retro-fit the new rendering engine to pygext, so I'm not sure if I have the time and motivation to do it.
Post a Comment
<< Home