Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOCK_REALTIME is not usable for timers #11

Open
praschke opened this issue Jan 26, 2023 · 0 comments
Open

CLOCK_REALTIME is not usable for timers #11

praschke opened this issue Jan 26, 2023 · 0 comments

Comments

@praschke
Copy link

https://lobste.rs/s/xxbo7n/minimal_cross_platform_graphics#c_2hhzgt

I think fenster_time() should be using CLOCK_MONOTONIC instead of CLOCK_REALTIME, since it is being used for FPS limiting. The value of CLOCK_REALTIME will jump if you adjust your computer clock, causing weird behaviour in applications that build delays off of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant