santa
3rd August 2010, 11:50
Hi,
Wondering is there any performance optimization tricks for this problem:
I have more than 4000 Simple QGraphicsElements (Rects) in scene...I'm using minimal viewport update mode...permormance is fine when I'm moving any of the element through mouse(using default movable flag)...but what I'm experiencing here if thousand of elements are overlapping each other (same position), moving any other element on top of that area is very slow.
I have taken out all painting code from the all graphics element to check whether painting is the isuue or not. But still it is slow :confused:. Is it somthing to do with the way Qt/Scene process event and mainatain Z order? I have tried BSP and NoIndex both flag for scene but no luck :(
Is there any tricks to overcome this...thanks in advance
Wondering is there any performance optimization tricks for this problem:
I have more than 4000 Simple QGraphicsElements (Rects) in scene...I'm using minimal viewport update mode...permormance is fine when I'm moving any of the element through mouse(using default movable flag)...but what I'm experiencing here if thousand of elements are overlapping each other (same position), moving any other element on top of that area is very slow.
I have taken out all painting code from the all graphics element to check whether painting is the isuue or not. But still it is slow :confused:. Is it somthing to do with the way Qt/Scene process event and mainatain Z order? I have tried BSP and NoIndex both flag for scene but no luck :(
Is there any tricks to overcome this...thanks in advance