Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: mellow3

Search: Search took 0.00 seconds.

  1. But if I remove the buffer swap from updateGL,...

    But if I remove the buffer swap from updateGL, then where is the buffer supposed to swap? If I put setAutoBufferSwap(false) the timer takes only 1 ms, but then I don't get any picture on the widget...
  2. updateGL() is a function of Qt. I'm using a...

    updateGL() is a function of Qt. I'm using a QGLWidget in my program. I don't think there's a glFinish() call there. Qt documentation just says "Updates the widget by calling glDraw().". glDraw in...
  3. Yeah you must be right, because after adding...

    Yeah you must be right, because after adding glFinish, glTexImage2D doesn't block the thread anymore. But now glFinish takes 16 ms and the updateGL call right before it also takes 16 ms making the...
  4. I'm using a timer. What you say is true, but with...

    I'm using a timer. What you say is true, but with a timer I can see that glTexImage2D blocks the rendering thread for a varying time of 1ms to 16ms when using vsync. When not using vsync this does...
  5. Strange delay when executing glTexImage2D with vsync on

    I'm programming a video software where I'm using Qt's QGLWidget to show the frames with the following code:



    glTexImage2D(GL_TEXTURE_2D, 0, (color ? GL_RGB8 : GL_LUMINANCE8), VIDEO_WIDTH,...
Results 1 to 5 of 5