[cairo] Lander Game

Steve Chaplin stevech1097 at yahoo.com.au
Sun Jan 7 21:11:42 PST 2007


On Sun, 2007-01-07 at 16:25 +0000, Alex Mac wrote:
> As i mentioned in another thread I've started writing a small "Lander"
> clone. I've split out the game logic from the rendering as best I can
> which means I've been able to create both a Cairo and Qt4 renderer.
> It's not yet a real game, just a small rendering test but I've put the
> code and some rantings up on the web: http://alexmac.cc/lander/
> 
> Preliminary results show the Qt4 branch is roughly 4 times faster at
> 640x480 and 2 times faster at 1680x1050.
> 
> I'm sure the code has ample room for optimisation so please have a
> look and tell me if I'm doing something wrong. As Carl said in the
> other thread it might prove to be a useful testcase for cairo.
> 
> Alex

I get 4 FPS which is very disappointing. But if I comment out
  self.level_svgpic.render_cairo(cr) from LanderWindow.Render()
I get 105 FPS.
That suggests to me that the bottleneck is not the pycairo or pygtk
code, the bottleneck is in the rsvg render_cairo() call.

Steve

Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the cairo mailing list