Skip to main content
magritte's user avatar
magritte's user avatar
magritte's user avatar
magritte
  • Member for 13 years
  • Last seen more than 1 year ago
comment
Libgdx Get Font Height with a Wrap
My BitmapFont class does not contain this method - any ideas?
awarded
awarded
awarded
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?
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?
comment
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).
awarded
Loading…