Constant Microstutters

I've tried playing around with the settings and it hasn't fixed anything. (Screenshots for specs and stutter visualization)
No description
No description
No description
83 Replies
Noa
NoaOP8mo ago
No description
Noa
NoaOP8mo ago
i meant to put this in the origional message
Yeshi
Yeshi8mo ago
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
Noa
NoaOP8mo ago
its done this on every build ive tried ive had this problem for over a year across different versions of dh and minecraft :/
Yeshi
Yeshi8mo ago
you've tested 2.0.3? it released 2 days ago
Noa
NoaOP8mo ago
oh no i havent where do it get it? and does it have the beta shader support?
Yeshi
Yeshi8mo ago
it doesn't support shaders, and it's in #announcements
Noa
NoaOP8mo ago
oh i dont want it if it cant do shaders 😭 so is the stuttering something that happens on everyones pc?
Yeshi
Yeshi8mo ago
it's a mixed bag ig 2.0.2 has been pretty stutter free from my experience
Noa
NoaOP8mo ago
well not for me 😭 every build i have tried has stuttered
Flaaffy
Flaaffy8mo ago
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
Noa
NoaOP8mo ago
no im not my fps is high its just these stutters 😭
Flaaffy
Flaaffy8mo ago
are you on an ssd?
Noa
NoaOP8mo ago
yeah
Flaaffy
Flaaffy8mo ago
is your ram acting strange?
Noa
NoaOP8mo ago
not that i know of
Flaaffy
Flaaffy8mo ago
stuttering like that can be ram
Noa
NoaOP8mo ago
no other game stutters
Flaaffy
Flaaffy8mo ago
whats your usage?
Noa
NoaOP8mo ago
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
Flaaffy
Flaaffy8mo ago
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
Noa
NoaOP8mo ago
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
Flaaffy
Flaaffy8mo ago
sometimes having too much can cause issues too
Noa
NoaOP8mo ago
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
Yeshi
Yeshi8mo ago
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.
Noa
NoaOP8mo ago
ya i figured lol i just didnt know the term
Flaaffy
Flaaffy8mo ago
yeah i only used 3000 mb then it jumps to 1000 mb unless im rending a ton of chunks of course
Yeshi
Yeshi8mo ago
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
Noa
NoaOP8mo ago
ya the stutters are still the same at 6gb bet
Flaaffy
Flaaffy8mo ago
is this stuttering at all times or just while rendering chunks
Noa
NoaOP8mo ago
all times ngl im looking for thread pool tasks and cant find it
Yeshi
Yeshi8mo ago
it's on the bottom right
Noa
NoaOP8mo ago
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
Yeshi
Yeshi8mo ago
can you send a recording with the f3 screen open?
Noa
NoaOP8mo ago
yes one sec i’ll just play minecraft like normal i’ll look at the sky and stop moving at the end tho
Flaaffy
Flaaffy8mo ago
is it something to do with your laptop gpu? maybe theres power settings you have to change
Noa
NoaOP8mo ago
Yeshi
Yeshi8mo ago
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
Noa
NoaOP8mo ago
but i also get them if i just stand still and look around 😭 dang
Yeshi
Yeshi8mo ago
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?
Noa
NoaOP8mo ago
you can see them in the bottom left every orange or red line is a stutter
Yeshi
Yeshi8mo ago
yes but do the spikes feel as big? the graph makes me think it's less severe
Noa
NoaOP8mo ago
def more stutters when i move around they are the same size tho
Yeshi
Yeshi8mo ago
do you have any other mods? best if you can send your latest.log (.minecraft/logs/latest.log)
YAGPDB.xyz
YAGPDB.xyz8mo ago
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
Yeshi
Yeshi8mo ago
right i forgot there was a command for this :clueless:
Yeshi
Yeshi8mo ago
that's all of em?
Noa
NoaOP8mo ago
Noa
NoaOP8mo ago
yeah
Yeshi
Yeshi8mo ago
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?
Noa
NoaOP8mo ago
how do i check that lol
Yeshi
Yeshi8mo ago
Right-click the Taskbar and select Task Manager. Select Performance and click Memory
Noa
NoaOP8mo ago
3200mhz dual channel
Yeshi
Yeshi8mo ago
i've got no idea then, does this happen when DH is not present?
Noa
NoaOP8mo ago
nope lol game runs perfectly without dh no stutters at all
Yeshi
Yeshi8mo ago
odd. hopefully someone else will find this post because i'm out of ideas
Noa
NoaOP8mo ago
hopefully 😭 i really appreciate ur effort to help me though
Yeshi
Yeshi8mo ago
no problem 🙂
Natalya
Natalya8mo ago
-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.
𝒮𝒶𝒹
𝒮𝒶𝒹8mo ago
for me 2.0.2 refuses to launch on forge
Natalya
Natalya8mo ago
Wrong thread for this
𝒮𝒶𝒹
𝒮𝒶𝒹8mo ago
wtv
Noa
NoaOP8mo ago
where do i use these?
Natalya
Natalya8mo ago
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)
Noa
NoaOP8mo ago
trying them now 🙏 can i use both of them or only one?
Natalya
Natalya8mo ago
only one you cannot have 2 GCs
Noa
NoaOP8mo ago
the first one helped thank you so much it didnt fix it but it made it playable 🙏 thank you
MarijnIsN00B
MarijnIsN00B8mo ago
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
MarijnIsN00B
MarijnIsN00B8mo ago
If you still looking for improvement
Noa
NoaOP8mo ago
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 😭
Carlos Sito
Carlos Sito8mo ago
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
Natalya
Natalya8mo ago
what's the crash reason? Out Of Memory?
Carlos Sito
Carlos Sito8mo ago
I will send an screenshot next time it happens
Hencoat
Hencoat8mo ago
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'
Carlos Sito
Carlos Sito8mo ago
My shutters last multiple seconds, so aren't "micro" neither. I will check and share the logs next time I play and it happens
Fartass Volfgangus
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.
Overheadcam
Overheadcam8mo ago
im getting the out of memory crash now, any tweak to fix or allocate more?
Natalya
Natalya7mo ago
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.
Overheadcam
Overheadcam7mo ago
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
Natalya
Natalya7mo ago
Can you monitor VRAM usage?
Overheadcam
Overheadcam7mo ago
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
Want results from more Discord servers?
Add your server