119 reputation
2
bio website
location
age
visits member for 2 years, 11 months
seen Sep 13 at 16:14

25m
awarded  Popular Question
Apr
4
comment How can I tell if OpenGL has finished rendering the current frame?
@mh01 Thanks, do you have a link to an example? I still think there's a potential issue - if the update() call is very fast, then the previous frame will still be rendering when calling requestRender(), even in a double buffered context couldn't that still be an issue?
Apr
3
comment How can I tell if OpenGL has finished rendering the current frame?
@Byte56 isn't the frame rate very much dependant on the update loop though? what's the point in rendering a new frame if nothing moved?
Apr
3
comment How can I tell if OpenGL has finished rendering the current frame?
@Byte56 Could you please elaborate?
Apr
3
comment How can I tell if OpenGL has finished rendering the current frame?
@RoyT. My (probably naive) thinking was that I want to ensure that the whole frame is drawn in a consistent state. My updateGameState() call is made in the main game loop thread, and I only want OpenGL to draw when all sprites have been updated to the current time. I was planning to store the positions and rotations of sprites before drawing them asynchronously with OpenGL (and then recalling updateGameState() on the CPU while the current frame is being rendered on the GPU).
Apr
3
awarded  Student
Apr
3
asked How can I tell if OpenGL has finished rendering the current frame?