My game keeps freezing constantly. Especially when I smelt stuff in the Diamond Furnace from More Furnaces. I haven't found much reason why, I have 12GB of RAM allocated, a perfectly fine CPU and GPU but when these freezes happen my cpu usage goes from 30% to 90%. If you have any suggestions for a fix, it'd be helpful!
12 GB is WAY too much memory and is likely the cause of the lag spikes (note also the part about memory usage by the javaw.exe process being double the in-game usage, possibly even more depending on memory usage by native libraries like OpenGL (more stuff to render = more OpenGL usage, especially if you use shaders); "8 GB RAM" should be read as 8 GB of free RAM, not 8 GB of installed RAM):
2. Why not give it more memory?
Let's give Minecraft 4 GB of RAM to play with. This would need a PC with at least 8 GB RAM (as the real memory usage is almost double the memory visible in Java). If the VM decides to use all the memory, then it will increase the time between the garbage collections (20 sec instead of 4), but it will also increase the garbage collection time by 4, so every 20 seconds there will be one massive lag spike.
If you have Optifine you can get a better idea of what is causing the lag spikes with its lagometer, for example, if you see big orange spikes then garbage collection is indeed the issue and can be fixed/reduced by optimizing JVM arguments/installing memory reduction mods (including allocating the minimum amount of memory necessary).
If this is the issue you could try FoamFix unless you already have it installed (it claims to reduce memory usage by up to 50%); otherwise, modders and Forge need to make a serious effort to reduce memory usage (IMO, there is no reason for even the biggest modpacks to need more than 1 GB of memory at the default render distance and texture resolution; my own experience in making my own (non-Forge) mods is that they literally have no noticeable impact, maybe a few MB of additional memory usage, in line with the size of new code and textures).
12 GB is WAY too much memory and is likely the cause of the lag spikes (note also the part about memory usage by the javaw.exe process being double the in-game usage, possibly even more depending on memory usage by native libraries like OpenGL (more stuff to render = more OpenGL usage, especially if you use shaders); "8 GB RAM" should be read as 8 GB of free RAM, not 8 GB of installed RAM):
If you have Optifine you can get a better idea of what is causing the lag spikes with its lagometer, for example, if you see big orange spikes then garbage collection is indeed the issue and can be fixed/reduced by optimizing JVM arguments/installing memory reduction mods (including allocating the minimum amount of memory necessary).
If this is the issue you could try FoamFix unless you already have it installed (it claims to reduce memory usage by up to 50%); otherwise, modders and Forge need to make a serious effort to reduce memory usage (IMO, there is no reason for even the biggest modpacks to need more than 1 GB of memory at the default render distance and texture resolution; my own experience in making my own (non-Forge) mods is that they literally have no noticeable impact, maybe a few MB of additional memory usage, in line with the size of new code and textures).
I tested and when I enabled the lagometer I discovered that the freezing was indeed caused by garbage collection. The only thing I don't understand is that I've tried lowering RAM allocation, I've tried different arguments from different reddit threads so I'm stumped. If you need any info to provide the best JVM argument for me, I'll give it you.
My game keeps freezing constantly. Especially when I smelt stuff in the Diamond Furnace from More Furnaces. I haven't found much reason why, I have 12GB of RAM allocated, a perfectly fine CPU and GPU but when these freezes happen my cpu usage goes from 30% to 90%. If you have any suggestions for a fix, it'd be helpful!
Specs:
CPU: i5-10600k
GPU: RTX 2070
RAM: 32GB Ram 3200mhz
MOBO: MAG Z490 Tomohawk
12 GB is WAY too much memory and is likely the cause of the lag spikes (note also the part about memory usage by the javaw.exe process being double the in-game usage, possibly even more depending on memory usage by native libraries like OpenGL (more stuff to render = more OpenGL usage, especially if you use shaders); "8 GB RAM" should be read as 8 GB of free RAM, not 8 GB of installed RAM):
If you have Optifine you can get a better idea of what is causing the lag spikes with its lagometer, for example, if you see big orange spikes then garbage collection is indeed the issue and can be fixed/reduced by optimizing JVM arguments/installing memory reduction mods (including allocating the minimum amount of memory necessary).
If this is the issue you could try FoamFix unless you already have it installed (it claims to reduce memory usage by up to 50%); otherwise, modders and Forge need to make a serious effort to reduce memory usage (IMO, there is no reason for even the biggest modpacks to need more than 1 GB of memory at the default render distance and texture resolution; my own experience in making my own (non-Forge) mods is that they literally have no noticeable impact, maybe a few MB of additional memory usage, in line with the size of new code and textures).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
I tested and when I enabled the lagometer I discovered that the freezing was indeed caused by garbage collection. The only thing I don't understand is that I've tried lowering RAM allocation, I've tried different arguments from different reddit threads so I'm stumped. If you need any info to provide the best JVM argument for me, I'll give it you.