Results 1 to 11 of 11

Thread: Performance issue with complex QGraphicsScene

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Performance issue with complex QGraphicsScene

    I can suggest a couple of things to try:
    1. enable caching for items (as suggested by my preposter but with ItemCoordinateCache)
    2. set ItemHasNoContents flag on all items that paint nothing
    3. set "interactive" property of the view to false if you don't need your scene to be clickable
    4. make shapes as simple as you can, if you scale use the level of detail information to avoid painting things that can't be noticed by the user
    5. make use of drawBackground() and drawForeground() instead of having items that cover the whole scene
    6. avoid clipping
    7. try using the raster engine instead of OpenGL.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    Nicuvëo (20th January 2011)

Similar Threads

  1. Performance of scene(QGraphicsScene) with update();
    By mukunda in forum Qt Programming
    Replies: 4
    Last Post: 14th January 2011, 12:21
  2. Performance issue
    By Skorpien126 in forum Qt Programming
    Replies: 4
    Last Post: 2nd July 2010, 16:02
  3. Bad performance of QGraphicsScene
    By miraks in forum Qt Programming
    Replies: 7
    Last Post: 23rd November 2008, 21:41
  4. QGraphicsScene performance
    By Aceman2000 in forum Qt Programming
    Replies: 4
    Last Post: 2nd June 2008, 18:10
  5. QGraphicsScene/QGraphicsView performance problems
    By bnilsson in forum Qt Programming
    Replies: 71
    Last Post: 28th January 2008, 12:08

Tags for this Thread

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.