Bizarrely consistent frame-inconsistency making Minecraft awful to play.
This seems to happen any time I use any modpack, but doesn't happen with the latest official Java snapshot on its own as far as I can tell, or any other application or game (using windows). Changing RAM allocation, Java version, driver/game settings doesn't seem to do anything, and I'm having difficulty even finding anybody else with this same issue.
Anybody know what causes this?
Anybody know what causes this?
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
My initial thought was indeed RAM, but it looks like you've thought of that. For now I'd recommend just setting that as 8GB, which should be plenty for anything but huge forge modpacks.
My guess would be either some unrelated driver/software in the background messing things up or some lower power mode setting being active in windows.
I was having the same problem and that fixed it.
Outside that, 200 fps easy.
Does it change interval or behavior if you change your frame rate cap?
Overall I think he might be running out of jvm max allowed memory if the gc is collecting that much.
4 GB is good for most use cases, more for heavy mod packs.
Plus use FerriteCore, it works very well to reduce the memory usage by the game
I was having similar latency spike issue with my laptop playing vanilla on out home server.
Fabric loader, sodium, lithium and ferrite core and never again had the consistent spikes.
I'll have to look into the Java garbage collector thing and see what I can do with that.
This looks like the garbage collector in action.
It causes huge lag spikes, if there's a lot of garbage to collect.
That only happens if too much RAM is allocated.
Short answer: there's a "garbage collector" constantly freeing up RAM for the game to use. If the garbage collector can't keep up with RAM usage, it will perform "old gen" collection to release a whole bunch of memory all at once, but this usually results in brief freezes or frame drops.
Are you playing modded or vanilla?
If you're on vanilla, I'd suggest looking into JVM arguments. The classic being Aikars flags. Unsure how relevant they are these days though.
JVM arguments are instructions you give to the garbage collector to make it suck less. You set them through the launcher.
If you have nvidia gpu then I dont know what it could be since nvidia shadowplay doesnt have any similar issues im aware of.
Also, the regularity of it makes me think about GC. Might fiddle with that setting but if it doesn’t fix it, change it back.
The key is, change one thing at a time till you isolate the issue. Then you can worry about fixing it.
In the end it was caused by Anti Aliasing. Turning it off fixed the issue.
Not sure if it will help in your case, but it doesn't hurt to try.