Results 1 to 2 of 2

Thread: Multiple QGLWidgets slow performance

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2013
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Multiple QGLWidgets slow performance

    Hi All,
    My application has a bunch of frames with each frame having 3 to 4 QGLWidgets.
    Based on some user action I show a specific frame. No more
    than 4 QGLWidgets are visible any any point of time, though the number of
    QGLWIdgets is around 100.

    The problem is the renderers are very unresponsive. I created a test application to debug this.
    Refer to the attached screenshot TestQtQLWidget.jpg
    The code creates 36 frames with a QGLWIdget inside each frame. Each button
    is linked to a frame. Click on a button would maximize a specific frame.
    Clicking on "show all frames" will show all frames. Each frame a slightly different
    color .

    When I maximize the window and start clicking on buttons, after clicking about
    20 to 30 times the application becomes very slow and unresponsive.
    Also when you click on "show all frames" the response is slow. White
    background artifacts can also be seen sometimes.

    I have attached the code, it can also be downloaded from git://github.com/seesomi/DebugBugs.git

    I have the following questions:
    a) Is it ok to have so many QGLWidgets in a QT application ?
    b) How can I make the show/hide frame rendering smoother and not jerky as it is now
    c) Is this related to having so many GL contexts or gl context switching, if so would sharing GL contexts across multiple widgets help...
    d) Any other suggestions for improvement

    Thanks,
    Somesh
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. QPainter::end() slow when multiple QGLWidgets visible
    By cbamber85 in forum Qt Programming
    Replies: 0
    Last Post: 4th November 2012, 11:38
  2. Saving a QImage from multiple QGLWidgets
    By Rayven in forum Qt Programming
    Replies: 4
    Last Post: 23rd March 2011, 04:37
  3. Single QGLContext across multiple QGLWidgets
    By pseudosig in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2008, 23:13
  4. Textures + Multiple QGLWidgets
    By KShots in forum Qt Programming
    Replies: 8
    Last Post: 19th October 2007, 21:23
  5. Problem with multiple QGLWidgets
    By claustre in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2007, 13:37

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.