QOpenGLWidget loop and glFinish()
-
wrote on 9 Dec 2015, 22:13 last edited by yoavmil 12 Sept 2015, 22:13
I am build a 3D viewer, sometimes rendering heavy stuff. and I want to render it over and over again. Using QOpenGLWidget.
the problem is that the previous frame isn't fully rendered, and I get just a few triangles, and the frame is re-rendered again.
in order to render again right after last rendering finished, I tried to use a QTimer, with 0 interval, calling update(), didn't help.
tried to call update() at the end of paintGL(), didn't help.
tried to connect to frameSwapped, didn't help.
and it looks line glFinish() isn't blocking.please advise.
1/1