Comment on Making an Accurate Sleep() FunctionparentComments−comex4yWhich is why you use vsync, ensuring the game renders once for each frame your monitor shows, as opposed to having the game just guess when it should present frames - which can produce tearing or be at the wrong frame rate entirely.−Narishma4yWhat about when you want to render at half the vsync rate to conserve battery?−sgtnoodle4yThat seems easy, just keep the frame around in a buffer and send it twice?
Comments
Which is why you use vsync, ensuring the game renders once for each frame your monitor shows, as opposed to having the game just guess when it should present frames - which can produce tearing or be at the wrong frame rate entirely.
What about when you want to render at half the vsync rate to conserve battery?
That seems easy, just keep the frame around in a buffer and send it twice?