Results 1 to 2 of 2

Thread: Performance problem for overlapped QGraphicsElements

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Unhappy Performance problem for overlapped QGraphicsElements

    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 . 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

  2. #2
    Join Date
    Jul 2010
    Posts
    53
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: Performance problem for overlapped QGraphicsElements

    no, there is no way to solve this. i have same problem. i wrote particle system, where particles are QGraphicsItems, but when i have > 500 partices(50fps) in scene there is cpu overhead. the problem is when you move(using move() method) any item, all items that intersect him are redrawn.

Similar Threads

  1. How to use html to show overlapped images in QToolTip
    By LorenLiu in forum Qt Programming
    Replies: 0
    Last Post: 19th April 2010, 08:52
  2. Replies: 0
    Last Post: 1st September 2009, 09:23
  3. Q3Table performance problem
    By batileon in forum Qt Programming
    Replies: 1
    Last Post: 13th August 2008, 15:32
  4. graphicsview performance problem
    By kernel_panic in forum Qt Programming
    Replies: 16
    Last Post: 23rd December 2007, 18:19
  5. StackedWidget overlapped
    By manucorrales in forum Qt Programming
    Replies: 5
    Last Post: 14th July 2006, 20:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.