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

Bug Report: Mouse Stuttering in Application #13

Closed
creator-hian opened this issue Dec 16, 2024 · 10 comments
Closed

Bug Report: Mouse Stuttering in Application #13

creator-hian opened this issue Dec 16, 2024 · 10 comments

Comments

@creator-hian
Copy link

creator-hian commented Dec 16, 2024

Description

On Windows 11 Pro (version 24H2), users experience significant mouse stuttering while using the application (versions v46~48). This issue disrupts smooth interaction with the application, negatively affecting user experience and productivity.

Steps to Reproduce

  1. Ensure the system is running Windows 11 Pro (version 24H2).
  2. Launch the application (versions v46~48).
  3. Repeatedly perform mouse movements.
  4. Observe the mouse cursor for any lag or stuttering during these interactions.

Expected Behavior

The mouse cursor should move smoothly and respond promptly to user inputs without any noticeable lag or stuttering while using the application.

Actual Behavior

The mouse cursor exhibits noticeable stuttering and lag when interacting with the application. This issue persists across different tasks and interactions within the application, making navigation and usage cumbersome.

Environment

  • Operating System: Windows 11 Pro 24H2
  • Application Version: v46~48
  • Hardware:
    • CPU: Intel i7-13700KF
    • RAM: 64GB
    • GPU: NVIDIA RTX 4080
  • Additional Information: The issue occurs regardless of other background applications running.

Logs and Screenshots

2024-12-16.17.45.20.mp4
@creator-hian
Copy link
Author

I checked and found that the same stuttering occurs when “running as administrator”.

@creator-hian
Copy link
Author

creator-hian commented Dec 16, 2024

I have found that the same stuttering occurs in v45.

@petoncle
Copy link
Owner

petoncle commented Dec 16, 2024

Thank you for this. This is a weird problem because I can't reproduce it on my computers. The movement is stuttering when mousemaster is running and you use your physical mouse to move the cursor, but if you use mousemaster to move the cursor then the movement is not stuttering. Is that correct?

I believe someone else had an issue similar to this one: #9

@creator-hian
Copy link
Author

creator-hian commented Dec 17, 2024

1. I've tried it now and it's stuttering and laggy when moving with the mouse,

Mousemaster, I can see that the movement is lag-free.

I'll give it a try based on the issue you described.

2. I wonder if it's my mouse,

I tried using a wireless mouse other than the MX Master 3S and found the same delay.

3.I have two systems. One is a Windows11 24H2, intel based system that I am currently working on.

Another is a Windows11 23H2, AMD based system.

Mousemaster worked fine when I was working on the AMD based system, but I am currently experiencing issues on the Intel system.

It would have been more accurate if it was the same OS, but unfortunately, due to the different nature of the two spaces, I was unable to make the OS the same.

@creator-hian
Copy link
Author

creator-hian commented Dec 18, 2024

I have tested the program on the following system configuration and experienced no stuttering or issues:

Smooth Operation

Test System1

  • CPU: Ryzen 5800X
  • RAM: 64GB
  • GPU: RTX 3060
  • OS: Windows 11 Pro 23H2
  • Application Version: v53

Test System2

  • CPU: intel i5-13400
  • RAM: 32GB
  • GPU: RTX 4060
  • OS: Windows11 Pro 23H2
  • Application Version: v53

Abnormal Operation

Test System1

  • CPU: intel i7-13700KF
  • RAM: 64GB
  • GPU: RTX 4080
  • OS: Windows11 Pro 24H2
  • Application Version: v53

@petoncle
Copy link
Owner

petoncle commented Dec 27, 2024

Hi @creator-hian, I've spent some time trying to fix the lag problem. I have no way to know if it works because the lag doesn't happen on my machines. Would you be able to test it?
I've tried 3 different approaches:

  1. The mouse hook is run in a separate thread instead of in the main thread:
    mousemaster-lagfix2.zip
  2. The mouse hook is replaced with position polling:
    mousemaster-lagfix3.zip
  3. The Windows message pump is called more often:
    mousemaster-lagfix4.zip

petoncle added a commit that referenced this issue Dec 28, 2024
…sical mouse while mousemaster is running (#13) by pumping Windows messages more frequently
petoncle added a commit that referenced this issue Dec 28, 2024
- Tried to fix the lag that happens to some people when using the physical mouse while mousemaster is running (#13). I have no way to test this because the problem doesn't happen on my machines. If you're still experiencing this issue, please tell me [here](#13).
- Fixed position history hint boxes which did not have an outline.
- Fixed the screen hint grid which was not covering the last row of pixels at the bottom of the screen.
- Implemented key repeating. This is useful for (a) using a key like the space bar as a modifier key and (b) key remapping.
- Added experimental [auto-zooming](https://github.com/petoncle/mousemaster/blob/main/configuration/author.md#auto-zoom-in-hint-mode) in the author's configuration when selecting the hint from the second precision hint grid.
@thiendiahui
Copy link

The latest release fixed my problem, thank you!

@petoncle
Copy link
Owner

The latest release fixed my problem, thank you!

@thiendiahui Thank you for the feedback ❤️
If you have the time, could you tell me if mousemaster-lagfix2 from this post still has the bug?
Version 59 contains this fix plus another fix. I would like to know of lagfix2 is enough to get rid of the issue.

@thiendiahui
Copy link

The latest release fixed my problem, thank you!

@thiendiahui Thank you for the feedback ❤️ If you have the time, could you tell me if mousemaster-lagfix2 from this post still has the bug? Version 59 contains this fix plus another fix. I would like to know of lagfix2 is enough to get rid of the issue.

I've now tested the lagfix2 as well, and both are working flawlessly.

@creator-hian
Copy link
Author

I just realized that the patch was made as I was working on other tasks.

In this version, I noticed that there is surprisingly no delay.
Thank you for the time and effort you must have put into this.

Test System

    CPU: intel i7-13700KF
    RAM: 64GB
    GPU: RTX 4080
    OS: Windows11 Pro 24H2
    Application Version: v59

@petoncle petoncle closed this as completed Jan 6, 2025
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

3 participants