R
R
Robotex2012-06-19 17:47:39
Qt
Robotex, 2012-06-19 17:47:39

What is the best way to draw graphics when developing games on Qt4 to get the best performance?

I'm trying now to implement a toy on Qt4 for the sake of sporting interest. I tried to draw on QGraphicsScene, but noticed slowdowns and a relatively large load on the system (everything that is drawn is calculated using Box2D). Perhaps I did not choose the correct component for graphics output (the standard Box2D + Qt example also slows down, so my curvature is clearly not the reason)? What is ideal for this?
Will using QML give a performance boost?
PS Tested speed on this example labs.qt.nokia.com/2010/02/26/qt-box2d-is-easy/

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
Nikita Permin, 2012-06-19
@NekitoSP

gamedev.ru/code/articles/OpenGL_Qt4
It's not difficult, honestly. For 2 evenings I mastered working with OpenGL and screwed it to Box2D.

X
Xintrea, 2012-06-19
@webhamster

I would first look at the filter that you have slowed down there. Maybe Box2D eats up percent, and you sin on the graphics. QGraphicsScene renders very quickly, at least in Qt demos, wild performance even on textured objects.

H
hachik, 2012-06-20
@hachik

Since Qt, it is possible that a cross-platform application is planned to be developed.
Better then OpenGL.

A
Alexey Sidorov, 2012-06-21
@Gortauer87

On SceneGraph it will be the fastest, but so far it is still damp.

A
Alexey Sidorov, 2012-06-21
@Gortauer87

And if you need 3D graphics, then Qt3D is the best

V
Vitaly Petrov, 2012-08-12
@vitaly_KF

Write in Qt Quick, it even has a binding to Box2D . Even if there are performance problems, which is very unlikely, then with the advent of Qt5 one fig, everything that is written in QML will be drawn only through OpenGL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question