Does FlipBuffers block?

Just starting out? Need help? Post your questions and find answers here.
Kruno
User
User
Posts: 31
Joined: Fri Apr 26, 2013 3:17 pm

Does FlipBuffers block?

Post by Kruno »

I can simply use a timer to simulate the draw fps, but the answer to this question could save me 30 seconds worth of effort.
Kruno
User
User
Posts: 31
Joined: Fri Apr 26, 2013 3:17 pm

Re: Does FlipBuffers block?

Post by Kruno »

Just found out that it indeed does block. I timed it myself.

Time to remove the FPS counter and add my own timers.

Thanks EllapsedMilliseconds! :)
flood
User
User
Posts: 32
Joined: Sun Aug 14, 2011 10:32 pm

Re: Does FlipBuffers block?

Post by flood »

FlipBuffers() blocks to wait for a vblank if vsync is enabled. I'm not sure what you're getting at here when it comes to your FPS counter.
Kruno
User
User
Posts: 31
Joined: Fri Apr 26, 2013 3:17 pm

Re: Does FlipBuffers block?

Post by Kruno »

flood wrote:FlipBuffers() blocks to wait for a vblank if vsync is enabled. I'm not sure what you're getting at here when it comes to your FPS counter.
I was checking to see how long the event loop is taking. It was 66ms and I wondered why. I set the frame rate to 15fps. I just used the timer to tick off when to render instead of using a frame limiter so my logic can run as fast as possible. Basically rendering should occur every 66ms and not the logic.
Post Reply