Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGLWindow initializes very slow

QOpenGLWindow initializes very slow

Scheduled Pinned Locked Moved General and Desktop
qopenglwindowslowinitializeqt 5.4.1
1 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xv1nX
    wrote on last edited by
    #1

    Hi guys,
    i am playing around with QOpenGLWindow, so i created an example project just like the one of Laszlo Agocs on following site:
    qt-weekly-20-completing-the-offering-qopenglwindow-and-qrasterwindow

    i just create a subclass with:

    Window() : QOpenGLWindow(NoPartialUpdate) {
        QSurfaceFormat format;
        format.setDepthBufferSize(24);
        format.setStencilBufferSize(8);
        setFormat(format);
    }
    

    and paint a triangle in paintGL().

    The problem is: the blank window pop up for about 1-2 seconds, then the triangle appears. Is there a way to speed up the initializeGL phase? there is an error if i manually call initializeGL().

    Thanks in advance,
    Vince

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved