Results 1 to 2 of 2

Thread: Poor OpenGL performance

  1. #1
    Join Date
    Aug 2009
    Posts
    56
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Poor OpenGL performance

    I found that the OpenGL update performance is very poor. With one small window you can get 30 FPS. But with two windows, or if you are doing anything else such as reading SQL, it drops to half that.

    I moved the readng SQL part to another thread, and even the openGL calls to another thread. But it was the same. So after some testing, I found the problem is QWidget::updatesEnabled(); which is returning true about 15 times a second, or worse with multiple windows.

    Is there a way to force window updates to happen more often?

    ------

    Disregard, the texture has to be a power of 2 or performance is horrible when you bind the texture.
    Last edited by rakkar; 3rd September 2009 at 20:38.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Poor OpenGL performance

    You are the one scheduling updates for GL widgets, so you can update as often as you want. Your paintGL() routine is probably too slow, try optimizing it.
    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.


Similar Threads

  1. Increase QPainter performance
    By travelan in forum Qt Programming
    Replies: 3
    Last Post: 3rd July 2009, 12:52
  2. QT core lib performance?
    By Quentin in forum Qt Programming
    Replies: 1
    Last Post: 31st January 2009, 10:17
  3. Performance Issues in Qt-4.4.3 / Qwt-5.1.1
    By swamyonline in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2009, 18:50
  4. Qt4 poor printing performance
    By seneca in forum Qt Programming
    Replies: 4
    Last Post: 22nd January 2009, 15:23

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.