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

On Windows, improve the performance for high polling rate mouse. #3609

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 27, 2024

  1. On Windows, improve the performance for high polling rate mouse.

    When using a high polling rate mouse on Windows, fast mouse motions result in numerous WM_NCHITTEST messages being generated. Processing each of these messages via DefWindowProc leads to noticeable frame rate drops across various applications (bevy#12679).
    
    Given that winit doesn't utilize the return value from DefWindowProc for WM_NCHITTEST, we can bypass invoking DefWindowsProc for this message, thereby substantially boosting performance for high polling rate mice
    benkyoujouzu committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    e49fd7a View commit details
    Browse the repository at this point in the history