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

vo: change vsync base to nanoseconds #12371

Merged
merged 13 commits into from
Sep 29, 2023
Merged

Commits on Sep 28, 2023

  1. Configuration menu
    Copy the full SHA
    6348c7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    920a384 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ad563bf View commit details
    Browse the repository at this point in the history
  4. timer: remove dead code

    This is not a proper way to do unit tests or whatever that was.
    kasper93 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    994073d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3c2f71e View commit details
    Browse the repository at this point in the history
  6. 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.
    kasper93 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    8a85031 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    04a61dc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d0ae399 View commit details
    Browse the repository at this point in the history
  9. win32/pthread: don't convert time through unrelated timer

    Just keep it directly as mp_time for internal implementation.
    kasper93 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    3697091 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ee698e1 View commit details
    Browse the repository at this point in the history
  11. vo: change vsync base to nanoseconds

    There is no reason to use microseconds precision. We have precise timers
    all all relevant platforms.
    kasper93 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    3fc57f6 View commit details
    Browse the repository at this point in the history
  12. vo: increase display refresh rate estimation limit from 99 Hz to 400 Hz

    High refresh rate displays exists...
    kasper93 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    ce0628e View commit details
    Browse the repository at this point in the history
  13. 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.
    kasper93 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    84bc3c6 View commit details
    Browse the repository at this point in the history