Avoid burning cpu in qwindow-compositor with glx and nvidia
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 5 Jun 2012 09:14:22 +0000 (12:14 +0300)
committerJørgen Lind <jorgen.lind@nokia.com>
Tue, 5 Jun 2012 12:24:51 +0000 (14:24 +0200)
Change-Id: I2da069c7fd12b26b2811b59ec66418865bcbe962
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
examples/qwindow-compositor/qwindowcompositor.cpp

index 831f2bd..7f37c45 100644 (file)
@@ -243,8 +243,7 @@ void QWindowCompositor::render()
 
     m_textureBlitter->release();
     frameFinished();
-    glFinish();
-
+    // N.B. Never call glFinish() here as the busylooping with vsync 'feature' of the nvidia binary driver is not desirable.
     m_window->swapBuffers();
 }