TeamMidnightDust / MidnightControls

A Minecraft mod adding controller support and enhanced controls overall.
https://midnightdust.eu/midnightcontrols/
MIT License
179 stars 28 forks source link

Mouse pointer laggy only in some menus #297

Open Mister-Curious opened 1 month ago

Mister-Curious commented 1 month ago

So I recently decided to try out 1.21 (coming from 1.20.4) and got almost all my mods working, but one thing I noticed was that in some menus the mouse pointer is extremely laggy. It should be noted that I am using the Midnight Controls mod to play with my DS4 Controller. To demonstrate this odd behavior I uploaded a video HERE.. In this video I use the hardware mouse (it moves at regular speed), and also use the controller to move the mouse (very slow speed). You can spot the difference pretty easy when I switch between the two in the problematic menus.

What's interesting about this problem is that it does not persist in all menus and screens. For example, when I am accessing the inventory and the mouse pointer becomes visible, the pointer speed is the same as while using the mouse as when using the controller. Same thing for the Main menu outside of the game. It is only when I use the Game Menu page and Xaeros World Map that the problem starts.

Another interesting thing about this issue is that while in the problematic areas (Game menu, map etc) the speed of the mouse pointer can vary. That is to say, sometimes when I open the Game Menu the pointer speed is EXTREMELY slow, but if I close and open the Game Menu again, it can be a little bit faster. The speed of the pointer remains the same until the menu or map is closed. There are often times it will not move at all.

Thinking perhaps it was one of the mods I had installed that was causing the issue, I decided to remove all mods (except for Fabric API and Midnight Controls). This did not resolve the issue.

Also, this is not a hardware issue, as my 1.20.4 instance of the game (which I still have installed), works perfectly fine.

So at this point I suspect that one of the following is causing the issue:

I am not sure how to troubleshoot this. I updated Java to 22 (was on 21). I also updated my GPU drivers but neither of these updates resolved the issue.

Running Minecraft 1.21 Windows 10 Pro GeForce 2070 Super

Any help in troubleshooting this would be appreciated! Thank you for your time.

To Reproduce Steps to reproduce the behavior:

  1. Launch Game
  2. Open Game Menu
  3. Move mouse pointer with Controller
  4. See pointer moving very slowly

Expected behavior Mouse pointer should move the same speed in all Menus and overlays

Screenshots See video HERE.

Desktop (please complete the following information):

Mister-Curious commented 1 month ago

Found a fix, but not sure why this is. If I set the game to Lan mode, the issue stops right away.