-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
vo: change vsync base to nanoseconds #12371
Commits on Sep 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6348c7e - Browse repository at this point
Copy the full SHA 6348c7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 920a384 - Browse repository at this point
Copy the full SHA 920a384View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad563bf - Browse repository at this point
Copy the full SHA ad563bfView commit details -
This is not a proper way to do unit tests or whatever that was.
Configuration menu - View commit details
-
Copy full SHA for 994073d - Browse repository at this point
Copy the full SHA 994073dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c2f71e - Browse repository at this point
Copy the full SHA 3c2f71eView commit details -
timer: teach it about nanoseconds
Those changes will alow to change vsync base to more precise time base. In general there is no reason to truncate values returned by system.
Configuration menu - View commit details
-
Copy full SHA for 8a85031 - Browse repository at this point
Copy the full SHA 8a85031View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04a61dc - Browse repository at this point
Copy the full SHA 04a61dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0ae399 - Browse repository at this point
Copy the full SHA d0ae399View commit details -
win32/pthread: don't convert time through unrelated timer
Just keep it directly as mp_time for internal implementation.
Configuration menu - View commit details
-
Copy full SHA for 3697091 - Browse repository at this point
Copy the full SHA 3697091View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee698e1 - Browse repository at this point
Copy the full SHA ee698e1View commit details -
vo: change vsync base to nanoseconds
There is no reason to use microseconds precision. We have precise timers all all relevant platforms.
Configuration menu - View commit details
-
Copy full SHA for 3fc57f6 - Browse repository at this point
Copy the full SHA 3fc57f6View commit details -
vo: increase display refresh rate estimation limit from 99 Hz to 400 Hz
High refresh rate displays exists...
Configuration menu - View commit details
-
Copy full SHA for ce0628e - Browse repository at this point
Copy the full SHA ce0628eView commit details -
vo: don't invoke wait, when not needed
This causes only problems, because we convert mp_time to realtime, which is not atomic, so we introduce error. And even though on sane platforms it should work fine, after all the sleep time is in the past. winpthreads like to sleep for like over 10ms when the time is less than current time, but not more than 1s.
Configuration menu - View commit details
-
Copy full SHA for 84bc3c6 - Browse repository at this point
Copy the full SHA 84bc3c6View commit details