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

Fix: [Win32] Set minimum resolution for timers to 1ms. #8660

Merged
merged 1 commit into from Feb 9, 2021

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Feb 9, 2021

Fixes #8658

Motivation / Problem

Since Windows 10 2004, timer resolution is always ~15.625ms, unless higher resolution as been requested by the app.
Before this version of windows, any app could request higher resolution and affect other apps.

Description

Request a 1ms resolution and don't rely on what any other app could have set.

Limitations

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

@michicc michicc merged commit f1f281b into OpenTTD:master Feb 9, 2021
@glx22 glx22 deleted the windows_sleep branch February 9, 2021 20:47
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

Successfully merging this pull request may close these issues.

With win32 video driver, mouse movement is very sluggish
3 participants