[Qt-interest] How much performance penalty for using QGraphicsItems over pure OpenGL?
Bart Kelsey
elbarto at gmail.com
Fri Nov 5 19:31:53 CET 2010
Greets!
I'm working on a 2D game engine that's built on top of Qt. At the moment,
I'm using a QGraphicsScene as the area where the game actually takes place,
and rendering the game elements (level map, sprites, etc) with OpenGL as the
scene's background (since this allows me to draw semi-transparent widgets
over top of it, which is awesome).
At any rate, it's occurred to me on several occasions that I would have a
lot more options if the things I currently rendered as the scene background
were actually QGraphicsItems in their own right. I could overload their
paint functions and use native painting to draw them with OpenGL, which is
good. My question is this: If I do this, am I going to notice any kind of
significant slowdown over rendering the game elements as the scene
background? I've written a lot of code already, and I don't want to dive
into this if it's going to cut my framerate in half. :)
Peace,
Bart
http://opengameart.org
--
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101105/2465b949/attachment.html
More information about the Qt-interest-old
mailing list