11 March 2006

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.

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.


Anonymous Anonymous said...

You should get an RSS feed for this!

14 March, 2006 22:56  
Blogger shang said...



I guess a link on the front page would help...

14 March, 2006 22:57  
Anonymous sindisil said...

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.

28 March, 2006 21:46  
Blogger shang said...

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.

30 March, 2006 16:08  

Post a Comment

Links to this post:

Create a Link

<< Home