Constant Microstutters
I've tried playing around with the settings and it hasn't fixed anything. (Screenshots for specs and stutter visualization)
83 Replies
i meant to put this in the origional message
i have a gut feeling the 2.0.3 PTB has less spikes like this
if you want to get experimental it's in #announcements
its done this on every build ive tried
ive had this problem for over a year
across different versions of dh and minecraft :/
you've tested 2.0.3? it released 2 days ago
oh no i havent
where do it get it? and does it have the beta shader support?
it doesn't support shaders, and it's in #announcements
oh i dont want it if it cant do shaders 😭 so is the stuttering something that happens on everyones pc?
it's a mixed bag ig
2.0.2 has been pretty stutter free from my experience
well not for me 😭
every build i have tried has stuttered
maybe its a hardware problem if its every single build
running any weird overclocks?
i dont haev any issues with fps in 2.0.2
no im not
my fps is high its just these stutters 😭
are you on an ssd?
yeah
is your ram acting strange?
not that i know of
stuttering like that can be ram
no other game stutters
whats your usage?
i gave it like 10gigs i think
i have 24 in total
you can see it in the f3 screenshot if that what u mean
try giving it 6. how much % ram are you actually using it in game
i gave mine 8gb with 32gb total ram and have no issues
i have played with lower ram
i just gave it more so i dont have to worry ab it bc i have more than enough lmao
sometimes having too much can cause issues too
rn idle my ram goes up to 6000mb sometimes then goes back down to like 2000
on f3
i mean i still have 14 for everything else but ill change it to 6 for the test
that's garbage collection
In computer science, garbage collection is a form of automatic memory management. The garbage collector attempts to reclaim memory that was allocated by the program, but is no longer referenced; such memory is called garbage.
ya i figured lol i just didnt know the term
yeah i only used 3000 mb then it jumps to 1000 mb
unless im rending a ton of chunks of course
a healthy java program will keep increasing up to 90% ish of whatever's currently allocated then jump back down to below 70% at the highest
try disabling distant generation and waiting for "thread pool tasks" on the f3 debug screen to hit 0
check if you're still getting spikes after that
ya the stutters are still the same at 6gb
bet
is this stuttering at all times or just while rendering chunks
all times
ngl im looking for thread pool tasks and cant find it
it's on the bottom right
when its at 0 it stops stuttering
but
when i start moving i assume its going up from 0 because it starts stuttering again
but i cant see bc im looking at blocks
lemme turn my render scale down
ya it seems like every time its not 0 i stutter
can you send a recording with the f3 screen open?
yes one sec
i’ll just play minecraft like normal
i’ll look at the sky and stop moving at the end tho
is it something to do with your laptop gpu? maybe theres power settings you have to change
weird that it's causing such spikes but this is very likely from moving between chunk borders
move through chunk border -> more stuff in queue -> higher allocation rate -> GC spike
should probably just wait for DH 2.1 and iris 1.7 to fully release
but i also get them if i just stand still and look around 😭
dang
tiny GC spikes will always happen. i can't tell how big the spikes are from the recording, are they as big as the spikes you get while moving around?
you can see them in the bottom left
every orange or red line is a stutter
yes but do the spikes feel as big? the graph makes me think it's less severe
def more stutters when i move around
they are the same size tho
do you have any other mods?
best if you can send your latest.log
(
.minecraft/logs/latest.log
)You should send your
latest.log
file to provide additional useful information.
Logs are located in the .minecraft/logs
directory.
On Windows: %appdata%\.minecraft\logs
On Linux: ~/.minecraft/logs
right i forgot there was a command for this :clueless:
that's all of em?
yeah
i'm not really sure then. starting to think it's an issue specific to your setup
idk if memory speeds can affect GC but i'll ask anyway, what's your ram running at?
how do i check that lol
Right-click the Taskbar and select Task Manager. Select Performance and click Memory
3200mhz
dual channel
i've got no idea then, does this happen when DH is not present?
nope lol
game runs perfectly without dh
no stutters at all
odd. hopefully someone else will find this post because i'm out of ideas
hopefully 😭 i really appreciate ur effort to help me though
no problem 🙂
-XX:+UseZGC
JVM arg might help. If not, try -XX:+UseShenandoahGC
. If that also doesn't work, rip.
Minecraft defaults to G1GC, which is good for throughput but is very spiky like you're noticing.for me 2.0.2 refuses to launch on forge
Wrong thread for this
wtv
where do i use these?
In your launcher. It's different for every launcher, google "[launcher] JVM args"
Also, remove any args referencing G1GC (maybe keep a copy of the original so you can undo this)
trying them now 🙏
can i use both of them or only one?
only one
you cannot have 2 GCs
the first one helped thank you so much
it didnt fix it but it made it playable
🙏 thank you
Try a different java distro like Adoptium or GraalVM, these are more optimised than the default one so you'll stutter less.
Also here is a very simple guide for optimised java args
GitHub
GitHub - brucethemoose/Minecraft-Performance-Flags-Benchmarks: Sane...
Sane, Benchmarked Java Flags and Tweaks for Minecraft - brucethemoose/Minecraft-Performance-Flags-Benchmarks
If you still looking for improvement
well when i dont use DH i dont have any stutters at all but i'll look into it today fs. also ya im still looking for improvements i jumped the gun when i said its playable 😭
I get this same problem. The game is running at over 100fps but randomly it shutters like crazy, and I mean that the program stops for a few seconds and sometimes it crashes Minecraft and other times it freezes and crashes the whole pc.
16GB RAM DDR4 and this happens with 6,8,10 and 12 gb of ram.
Ryzen 5600x. Nvidia 3080(10GB) Im using shaders. When not using shaders this doesn't happen, but it happens with every shader (bliss, bsl, ...) Also I have tried disabling every other mod expect for the basics for DH with shaders to work but that doesn't help. Also the horizon breaks and glitches as I reported here: https://discord.com/channels/881614130614767666/1228121641649967104/1228121641649967104
Ryzen 5600x. Nvidia 3080(10GB) Im using shaders. When not using shaders this doesn't happen, but it happens with every shader (bliss, bsl, ...) Also I have tried disabling every other mod expect for the basics for DH with shaders to work but that doesn't help. Also the horizon breaks and glitches as I reported here: https://discord.com/channels/881614130614767666/1228121641649967104/1228121641649967104
what's the crash reason? Out Of Memory?
I will send an screenshot next time it happens
If your log looks anything like mine, it could be related.
https://discord.com/channels/881614130614767666/1230366425445695548
Although I dunno if you would call my stutter 'micro'
My shutters last multiple seconds, so aren't "micro" neither.
I will check and share the logs next time I play and it happens
my game does this same thing. after about 20 minutes of playing on a world, it gets slight stutters about once a minuite, then every 30 seconcs, then 10, then every other second, until it gets unplayable. exiting and reopening a world fixes it, or refreshes something but it always comes back.
im getting the out of memory crash now, any tweak to fix or allocate more?
Allocate more, maybe lower CPU preset / threads to reduce memory pressure. If it's a memory leak, that'll just delay the crash, but otherwise it should help.
Minecraft has 24gb of ram allocated, but this is an OpenGL memory runout, im assuming thatlkl be using my gpu vram and not actual ram?
To be exact, its
[22Apr2024 21:07:29.718] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1285, source=API, type=ERROR, severity=HIGH, message='GL_OUT_OF_MEMORY error generated. Failed to allocate memory for buffer data.'
[22Apr2024 21:07:29.718] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1281, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_VALUE error generated. Invalid size and/or offsets.'
COuld be an Opengl memory leak but im unaware of how to track it down
Can you monitor VRAM usage?
not even sure, il take a look
Interestingly, i lowered the allocated main ram and this is the new error i got after about 2 hour session
[22Apr2024 23:28:36.723] [Chunk Render Task Executor #3/ERROR] [me.jellysquid.mods.sodium.client.util.NativeBuffer/]: EMERGENCY: Tried to allocate 486560 bytes but the allocator reports failure
[22Apr2024 23:28:36.723] [Chunk Render Task Executor #3/ERROR] [me.jellysquid.mods.sodium.client.util.NativeBuffer/]: EMERGENCY: ... Attempting to force a garbage collection cycle (attempt 1/3)
seems like the old sodium memory leak error becoming an issue on embeddium
Going to try adding embeddium ++ and a memory leak fix for forge, il run a vram monitor in the background. Seems like the buffer isnt properly doing its job for some reason