[Kde-games-devel] KBreakout

Ian Wadham ianw2 at optusnet.com.au
Sat Jun 23 00:44:34 CEST 2007


On Sat, 23 Jun 2007 12:02 am, Fela Winkelmolen wrote:
> Ok, you made me doubt. It would make the game a lot easier to write using
> QGraphicsSceneItems directly in the GameEngine, and I don't think
> QGraphicsScene will become obsolete anytime soon. But I'm a bit concerned
> about the performance, a simple game like this really shouldn't really use
> more than 5% of the cpu on a modern pc... I did a quick test adding 10
> balls, and it became unplayable, but that is likely caused by my own code.
> I think I will do some more performance testing and than decide.
>
Two suggestions.  If you "export QT_FLUSH_PAINT=1", you get yellow
flashes that show you what QGraphicsView is doing (i.e. how much of
the view is being re-drawn as the animation proceeds).  Also Mauricio
implemented two very small subclasses, for sprites and the playfield,
when using QGV, and that made it easier for him to switch to
KGameCanvas IIRC.

All the best, Ian W.


More information about the kde-games-devel mailing list