PDA

View Full Version : QGraphicsView/QGraphicsScene performance



onurozcelik
14th February 2011, 09:38
I am using QGraphicsScene/QGraphicsView pair in my project I have performance issue with this pair. I added my custom graphics items to scene and displayed the contents with view. After that my custom graphics items paint method continuously called by scene(just like infinite loop). This makes %25 of CPU usage(approximately 400 items on scene). What may cause this behaviour?

MarekR22
14th February 2011, 10:45
Now the real question is what did you do wrong! I'm not clairvoyant so I can't tell.

stampede
14th February 2011, 10:56
Well, this may even be the NGC 4038 galaxy radiation influence on your CPU.
( read above as: it's really hard to tell without some code of yours :) )

wysota
14th February 2011, 18:56
After that my custom graphics items paint method continuously called by scene(just like infinite loop). This makes %25 of CPU usage(approximately 400 items on scene). What may cause this behaviour?
I think you already answered your question yourself.

SixDegrees
14th February 2011, 23:30
In addition to the above, you didn't say how you measured CPU usage, or why you think this is a valid measure of performance.