Minecraft causes an update to the currently displayed menu/game every time it detects the cursor updated, so if you use a high poll rate mouse, it causes a lot of updates, each time forcing a function to be run. This lags the game significantly, so I'd recommend using a lower poll rate on Minecraft.
EDIT: I've figured out that this issue occurs any time my mouse cursor is moving rapidly when over Minecraft, which includes playing the game, the inventory or the pause menu. As soon as the cursor is not over Minecraft (such as on a separate monitor, or the task bar or title bar) the fps is stable and high. Upon trying a different mouse, the issue is gone. So the issue is with the Logitech Gaming software. If anyone else has a similar issue, I recommend experimenting with any mouse drivers.
The issue seems to be my 1000Hz poll rate. Halving that to 500Hz mostly fixed the issue, but I still noticed some lag, so I dropped it to 333Hz, and the issue is gone altogether.
Maybe a month ago, my mouse started going crazy in Minecraft. It was only in Minecraft, and occurred whether I was using mods, or using a completely brand new installation of Minecraft. Yesterday I completely wiped my hard drive and reinstalled Windows and Minecraft, it was fine for a day, but today the issue started occurring again.
Here's some videos of the issue occurring across versions and modded and vanilla.
Vanilla 1.12.2:
17w50a (Latest Snapshot at Time of Posting)
1.10.2 Modded (Project Ozone Lite)
As you can see at the end of the modded video, I'm smoothly moving my mouse side to side, however it periodically does little jumps. Especially around 20 seconds, the effect is very noticeable. I am definitely moving my mouse smoothly, and at the end, I open the chat box to show that the cursor does move smoothly.
This issue occurs on all installations of Minecraft, whether they are vanilla or not.
Initially, I was able to solve the issue by getting my own installation of Java, 8u151 and using that instead of the outdated version included, and this worked for a month or so, but the issue started occurring, so I reinstalled Windows, and it was fine, but the problem came back. I am using 8u152 after reinstalling Windows. This issue is completely isolated to Minecraft, and affects both the current and old versions as well as the new Snapshot that uses the latest LWJGL. However, in the snapshots, rather than jerky camera movements, I get extreme, unplayable lag when moving, down to 0fps, but the fps returns when standing still.
Any idea what may be causing this issue? I can't seem to solve it. It will be fixed for some time, maybe a month, maybe 10 minutes, then it comes back again.
the jumps seems to happen when java dumps the garbage cache and the ram used drops from 20ish% to 10ish%
Well the issue seems to have magically disappeared again for the time being, but I doubt it's solved.
These are the default arguments the Twitch launcher (used in the video) uses (other than Xmx, I set it to 8GB as that seemed pretty good for having 130 mods and stuff. Also removed the directory, but it just points to my game directory.):
I had an issue like that, removing mipmaps helped a lot, tell me if it works for you.
This isn't an issue with Modded Minecraft. While the thread was moved to modded, I think it's very inappropriate. Yes, my example video is modded, but as I stated multiple times, the issue is with Minecraft as a whole, across all versions, modded or not.
the jumps seems to happen when java dumps the garbage cache and the ram used drops from 20ish% to 10ish%
Yup, the issue just came back on it's own. Any idea what might cause it? I know this has been an issue for years, but because of it's extreme rarity, nobody has ever found a solution.
the jumps seems to happen when java dumps the garbage cache and the ram used drops from 20ish% to 10ish%
Also, please move this back to unmodified support and don't move this to modded support as unmodified gets a lot more attention and it's more likely that someone will notice. Also, THIS IS NOT A MODDED ISSUE. The video may be from modded MC, but this affects every installation of MC on my computer. It's a Java issue, or it's an issue with LWJGL or something at the core of Minecraft, thus it's inappropriate to have this under modded client support.
You are using a modded minecraft and have supplied evidence of the issue while modded so the modded section is correct.
If this is truly a java or lwjgl issue then it would be better to post on a forum for them and not here as this is a minecraft support site not a java or lwjgl forum.
Well I don't know if it's an issue with LWJGL or if it's Minecraft's implementation of it. It's difficult to get a good recording of the issue, and that's just the recording I have. Sorry if it sounded rude, but I've been very frustrated by this issue for a long time now, and nobody seems to have any solution. Just because I provide evidence in a modded game doesn't make it a modded issue. This issue persists no matter how many times I reinstall Minecraft, on any version, with or without any changes made to it, on any version of Java 8 (haven't tested Java 7) on any version of Windows 10 (haven't tested any other OS). Perhaps it's an issue with my computer as my GPU is in need of being replaced under warranty, but no other game is affected, so obviously there is something that can be done software wise. People have suggested setting Java to lowest priority in the task manager so as not to affect the processing of the mouse movements, but my computer is very powerful as you can see in the video, that is not an issue and doesn't affect me, nor does the solution help most people who've reported this unusual problem. If you have any better ideas of how to solve this problem then please go ahead, but you simply asked for java arguments and didn't even follow through with that by responding, and moved the issue to a section that I believe is incorrect, resulting in the potential views of people who have actually had this same issue. Many believe this issue is tied to optifine, but it is not. This issue even occurs on LWJGL 3 in the latest Minecraft snapshots, but in a different way.
EDIT: If it makes you any happier, here's what trying to play the game is like. Try watching around 34 and 45 seconds..
And it's in vanilla 1.12.2 with the same Java arguments as before..
I'll post one of the latest snapshot too just for reference. Sorry for the bad compression, I just realized the settings were messed up and the videos are awful. The snapshot video is still uploading as of posting this, but it's link is there anyways for when it's done. It might take time for YouTube to render it in 1080p60fps though. But in that, the issue is not so much that my mouse movements are erratic, but that any quick mouse movements absolutely tanks my FPS and I drop from 100s down to 0 in an instant. Even mouse movements in the inventory, or in the pause menu.... If you had any doubts about my performance, I show in there that 200 entities isn't a problem and I'm still getting 60+ fps standing still staring at them...
Also, just to add to that, memory usage is all over the place, very quickly fluctuating up and down and the issue still occurs even without any additional Java arguments set.
So the issue is occurring based on the amount I physically move my mouse. I have my DPI set to 1200, but I can change that and the issue completely ignores it. Huge movements in real life (very little movement on screen) impact my FPS just as much as when I had a very high DPI and the cursor itself moved a lot. Switching to on-board memory profiles of my mouse rather than the computer profiles resolves the issue, so it must be something due to Minecraft possibly trying to intercept the mouse inputs and read them prior to the software making changes or something.
Although, it seems that using my nicer mouse, in general, causes Minecraft a lot more lag than my old super cheap one... Perhaps that's due to the 1000Hz refresh rate of my good mouse vs the 100Hz or whatever of the cheap one. I don't know yet.
EDIT: I just lowered my good mouse's poll rate to 125Hz, and the issue is gone. Minecraft obviously doesn't like high polling rates, but I'm not sure why it works sometimes.
Glad to hear you've found a fix, I've been following (without having anything to contribute) against tha possibility of experiencing something similar…
Thread flagged & bookmarked for troubleshooting folder; I appeciate the tenacity with which you pursued the matter THX
Rollback Post to RevisionRollBack
"Why does everything have to be so stoopid?" Harvey Pekar (from American Splendor)
WARNING: I have an extemely "grindy" playstyle; YMMV — if this doesn't seem fun to you, mine what you can from it & bin the rest.
Glad to hear you've found a fix, I've been following (without having anything to contribute) against tha possibility of experiencing something similar…
Thread flagged & bookmarked for troubleshooting folder; I appeciate the tenacity with which you pursued the matter THX
Looking through the code, I believe the reason why this is a problem is because every time Minecraft detects the mouse was updated, it updates the current "GUI", which can either be a menu, or in this case, the game itself. So say your mouse updates 1000 times per second, well that's forcing the game to run a little update function over and over... So yeah, Minecraft just isn't designed well to handle high poll rate mice.
WolfLeader thanks for posting this. Not sure how long I've been struggling with this. But the last few days once I went back to my gaming mouse I was having the exact same issues. Well with on difference. For me the mouse movements were fine until I clicked or clicked and held. That is when the mouse sensitivity would go crazy high and erratic.
After trying all kinds of things I've found over the internet when other people have had similar problems (usually with older versions of minecraft) your solution noted in this thread is the only one that really works.
I changed mine to 125 Hz as well and that was the only thing that seems to have worked. Even at 250 hz it didn't feel quite right. And for me it was the same. It only effected me in minecraft and it was across all versions (vanilla, forge, optifine, etc...) of 1.12.2.
Looking forward to seeing my skills possibly really improve. I suspect I've been struggling with this for quite some time and probably just didn't notice until my polling was really bumped up.
Minecraft causes an update to the currently displayed menu/game every time it detects the cursor updated, so if you use a high poll rate mouse, it causes a lot of updates, each time forcing a function to be run. This lags the game significantly, so I'd recommend using a lower poll rate on Minecraft.
EDIT: I've figured out that this issue occurs any time my mouse cursor is moving rapidly when over Minecraft, which includes playing the game, the inventory or the pause menu. As soon as the cursor is not over Minecraft (such as on a separate monitor, or the task bar or title bar) the fps is stable and high. Upon trying a different mouse, the issue is gone. So the issue is with the Logitech Gaming software. If anyone else has a similar issue, I recommend experimenting with any mouse drivers.
The issue seems to be my 1000Hz poll rate. Halving that to 500Hz mostly fixed the issue, but I still noticed some lag, so I dropped it to 333Hz, and the issue is gone altogether.
Maybe a month ago, my mouse started going crazy in Minecraft. It was only in Minecraft, and occurred whether I was using mods, or using a completely brand new installation of Minecraft. Yesterday I completely wiped my hard drive and reinstalled Windows and Minecraft, it was fine for a day, but today the issue started occurring again.
Here's some videos of the issue occurring across versions and modded and vanilla.
Vanilla 1.12.2:
17w50a (Latest Snapshot at Time of Posting)
1.10.2 Modded (Project Ozone Lite)
As you can see at the end of the modded video, I'm smoothly moving my mouse side to side, however it periodically does little jumps. Especially around 20 seconds, the effect is very noticeable. I am definitely moving my mouse smoothly, and at the end, I open the chat box to show that the cursor does move smoothly.
This issue occurs on all installations of Minecraft, whether they are vanilla or not.
Initially, I was able to solve the issue by getting my own installation of Java, 8u151 and using that instead of the outdated version included, and this worked for a month or so, but the issue started occurring, so I reinstalled Windows, and it was fine, but the problem came back. I am using 8u152 after reinstalling Windows. This issue is completely isolated to Minecraft, and affects both the current and old versions as well as the new Snapshot that uses the latest LWJGL. However, in the snapshots, rather than jerky camera movements, I get extreme, unplayable lag when moving, down to 0fps, but the fps returns when standing still.
Any idea what may be causing this issue? I can't seem to solve it. It will be fixed for some time, maybe a month, maybe 10 minutes, then it comes back again.
Sorry this might be a bit confusing, it's late..
Thanks again!
Well the issue seems to have magically disappeared again for the time being, but I doubt it's solved.
These are the default arguments the Twitch launcher (used in the video) uses (other than Xmx, I set it to 8GB as that seemed pretty good for having 130 mods and stuff. Also removed the directory, but it just points to my game directory.):
And the arguments I use on the standard launcher:
The 8GB of RAM there was because I was using a huge resource pack. Perhaps the Xms value should be removed or something?
I had an issue like that, removing mipmaps helped a lot, tell me if it works for you.
This isn't an issue with Modded Minecraft. While the thread was moved to modded, I think it's very inappropriate. Yes, my example video is modded, but as I stated multiple times, the issue is with Minecraft as a whole, across all versions, modded or not.
Thanks for the help though. :/
Yup, the issue just came back on it's own. Any idea what might cause it? I know this has been an issue for years, but because of it's extreme rarity, nobody has ever found a solution.
Also, please move this back to unmodified support and don't move this to modded support as unmodified gets a lot more attention and it's more likely that someone will notice. Also, THIS IS NOT A MODDED ISSUE. The video may be from modded MC, but this affects every installation of MC on my computer. It's a Java issue, or it's an issue with LWJGL or something at the core of Minecraft, thus it's inappropriate to have this under modded client support.
Well I don't know if it's an issue with LWJGL or if it's Minecraft's implementation of it. It's difficult to get a good recording of the issue, and that's just the recording I have. Sorry if it sounded rude, but I've been very frustrated by this issue for a long time now, and nobody seems to have any solution. Just because I provide evidence in a modded game doesn't make it a modded issue. This issue persists no matter how many times I reinstall Minecraft, on any version, with or without any changes made to it, on any version of Java 8 (haven't tested Java 7) on any version of Windows 10 (haven't tested any other OS). Perhaps it's an issue with my computer as my GPU is in need of being replaced under warranty, but no other game is affected, so obviously there is something that can be done software wise. People have suggested setting Java to lowest priority in the task manager so as not to affect the processing of the mouse movements, but my computer is very powerful as you can see in the video, that is not an issue and doesn't affect me, nor does the solution help most people who've reported this unusual problem. If you have any better ideas of how to solve this problem then please go ahead, but you simply asked for java arguments and didn't even follow through with that by responding, and moved the issue to a section that I believe is incorrect, resulting in the potential views of people who have actually had this same issue. Many believe this issue is tied to optifine, but it is not. This issue even occurs on LWJGL 3 in the latest Minecraft snapshots, but in a different way.
EDIT: If it makes you any happier, here's what trying to play the game is like. Try watching around 34 and 45 seconds..
And it's in vanilla 1.12.2 with the same Java arguments as before..
I'll post one of the latest snapshot too just for reference. Sorry for the bad compression, I just realized the settings were messed up and the videos are awful. The snapshot video is still uploading as of posting this, but it's link is there anyways for when it's done. It might take time for YouTube to render it in 1080p60fps though. But in that, the issue is not so much that my mouse movements are erratic, but that any quick mouse movements absolutely tanks my FPS and I drop from 100s down to 0 in an instant. Even mouse movements in the inventory, or in the pause menu.... If you had any doubts about my performance, I show in there that 200 entities isn't a problem and I'm still getting 60+ fps standing still staring at them...
Also, just to add to that, memory usage is all over the place, very quickly fluctuating up and down and the issue still occurs even without any additional Java arguments set.
So the issue is occurring based on the amount I physically move my mouse. I have my DPI set to 1200, but I can change that and the issue completely ignores it. Huge movements in real life (very little movement on screen) impact my FPS just as much as when I had a very high DPI and the cursor itself moved a lot. Switching to on-board memory profiles of my mouse rather than the computer profiles resolves the issue, so it must be something due to Minecraft possibly trying to intercept the mouse inputs and read them prior to the software making changes or something.
Although, it seems that using my nicer mouse, in general, causes Minecraft a lot more lag than my old super cheap one... Perhaps that's due to the 1000Hz refresh rate of my good mouse vs the 100Hz or whatever of the cheap one. I don't know yet.
EDIT: I just lowered my good mouse's poll rate to 125Hz, and the issue is gone. Minecraft obviously doesn't like high polling rates, but I'm not sure why it works sometimes.
Glad to hear you've found a fix, I've been following (without having anything to contribute) against tha possibility of experiencing something similar…
Thread flagged & bookmarked for troubleshooting folder; I appeciate the tenacity with which you pursued the matter THX
Looking through the code, I believe the reason why this is a problem is because every time Minecraft detects the mouse was updated, it updates the current "GUI", which can either be a menu, or in this case, the game itself. So say your mouse updates 1000 times per second, well that's forcing the game to run a little update function over and over... So yeah, Minecraft just isn't designed well to handle high poll rate mice.
WolfLeader thanks for posting this. Not sure how long I've been struggling with this. But the last few days once I went back to my gaming mouse I was having the exact same issues. Well with on difference. For me the mouse movements were fine until I clicked or clicked and held. That is when the mouse sensitivity would go crazy high and erratic.
After trying all kinds of things I've found over the internet when other people have had similar problems (usually with older versions of minecraft) your solution noted in this thread is the only one that really works.
I changed mine to 125 Hz as well and that was the only thing that seems to have worked. Even at 250 hz it didn't feel quite right. And for me it was the same. It only effected me in minecraft and it was across all versions (vanilla, forge, optifine, etc...) of 1.12.2.
Looking forward to seeing my skills possibly really improve. I suspect I've been struggling with this for quite some time and probably just didn't notice until my polling was really bumped up.