Hi,
When im playing on any server, such as Hypixel or Mc-Central, when the memory fills up and resets, the game momentarily freezes for a split second.
Edit - It happens in a single player world too (fresh world, just loaded)
I have played Minecraft for many years, this never used to happen, so im confused as to why it started to happen now. I updated my system recently, new motherboard, graphics card and cpu and reinstalled windows 10 (latest version).
What have I done so far .. I have ran stress tests/memory tests for many hours, such as intel burn test (for cpu), memtest86 (for ram), and unique heaven (for gaming) and they all pass. I have switched the ram for another set of ram, different manufacturer, but the stuttering persists. I have also reinstalled Minecraft, to no avail. I also tried running a program called Intelligent memory stanby list cleaner, which has not helped.
Please watch this video - https://streamable.com/80aody
Each time the Mem : resets, the screen freezes, for a split second.
Attachments
Comments 8
Thanks for your input.
I would like to add, it is happening in the single player world too. I checked frametimes using msi afterburner and they are spiking really high each time minecraft stutters.
I have tried setting a framerate cap inside Minecraft, and the same stutter occurrs. I can limit the framerate to 120 or 60, which it can sustain easily, but Minecraft will still stutter each time the memory fills up.
Hi again, just an update.
Frametimes being reported in afterburner :
In single player frametimes are bouncing between 9ms-24ms
In multiplayer frametimes bouncing between 9ms - 30ms
Framerate cap set at @ 120fps in Minecraft, framerate seems to be stable (but stuttering continues
I disabled afterburners power monitoring before testing, as I know that can cause micro stuttering. Didnt help. I have also tried disabling windows game mode, to no avail.
Edit 2 : I was mistaken, Frametimes are hitting as high as 60ms, so 9ms - 60ms fluctations.
I updated to the latest java version today, jre-8u241-windows-x64, and set it in the Minecraft Launcher, the game still stutters when memory fills up.
8 is not the latest (although the JRE of that version seems to get some updates still). I'd look in here: https://jdk.java.net/13/
Or if preferring Oracle's versions: https://www.oracle.com/java/technologies/javase-downloads.html
I have no idea why Oracle doesn't mention on that java.com site that these days one could look for the JDKs instead (they no longer provide JREs separately, only JDKs).
so after multiple tests i reached a conclusion that the game will stutter and give you a lag spike if you played it in 1.15 or later and this because the new system behavior of using your pc resources you can read about it here https://www.reddit.com/user/sliced_lime/comments/e00ohm/a_word_or_two_about_performance_in_minecraft/
and this is what i think it is a big mistake from mojang because it affects the performance in a negative way
This issue is most likely Invalid. G1GC (Garbage Collector that Minecraft uses by default) can stop Minecraft for a little bit to clear unused memory.
The difference in those hiccup times may be caused by a different java version, using a different garbage collector routine and/or GC settings. Minecraft comes with its own java runtime, but I haven't looked into it more than that (e.g. which GC it uses and which settings for it). It might be possible to tweak the garbage collector settings via launcher...
That is, this might not be a bug in Minecraft (the java application), but badly chosen default setup in its launcher and/or java runtime. Still, it is something Mojang devs would need to look at.