• Advertisement
Sign in to follow this  

clock adjusted to monitor FPS

This topic is 1910 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to make a line that incrases exactly 1 pixel per monitor frame.
I want to make a float variable that incrases exactly by 1.0f every monitor frame,
I can't do this with GetTickCount() because its not very precise, and getting a clock with higer resolution stills doesnt solve the problem because I want it to be the exact exactinium.
Is there any way to get that moment when the monitor exactly change frames? so if the app runs in another monitor with different refresh rate the line will still increase 1 pixel every monitor frame.
Has anyone any Solution?

Share this post


Link to post
Share on other sites
Advertisement
Just increase it 1 every game loop, and use vsync by providing 1 for the interval in IDXGISwapChain::Present.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement