Performance drops after spending time in game

Starting up my world I get great performance even as all the chunks are being rendered but after like 30 minutes or so performance steadily starts declining to noticeable levels. I can start at around 100fps and it slowly works down to where at some instances I’m below 30 even if I cap my fps to 60 even with the extra computing power it still drops after everything is rendered. I am running an i5-11400f with a 3060ti on 32gbs of ram (I’ve tried allocating 8-10 gigs) I am running at 1440 but that’s because I have to with the combo I have or I get significantly less performance due to bottleneck I’m running multiple mods to help with performance issues ie sodium, lithium, immediately fast, memory leak fix and others my cpu load is set to low impact and I’m 256 chunks with 8 render. I am running with shaders to help take some load from the cpu
27 Replies
Mati
Mati2mo ago
i am using same cpu and rtx 3060 and 16 gigs of ram and i don't get performance drops maybe your cooling system is not good. i also have lot of performance mods well if i start to move while the lods are still rendering i am getting drops allocate more ram too
Just A Gent
Just A Gent2mo ago
Cooling is not the issue even at 100% my cpu rarely gets above 60-65 never over 70 and gpu isn’t hitting 100% so temps on that stay low. From what I have read in this discord is that allocating to much ram can cause issues
Mati
Mati2mo ago
i've allocated 12 of 16 gigs allocate a lit more bro
Just A Gent
Just A Gent2mo ago
Originally when I first started I had given the game like 16 😂 because I had 23 unused and then I read that and I was like oh I’ll just turn it down. When I get home from work I will bump it back up and see how that goes
Mati
Mati2mo ago
where did you read that
Just A Gent
Just A Gent2mo ago
I don’t remember exactly and it might not have been in the discord now that I’m thinking about it. It may have been YouTube comments on videos about DH I was watching when trying to get it set up
majo24
majo242mo ago
Sounds like you might have a memory leak or something like that
Just A Gent
Just A Gent2mo ago
Well like I said I do have a mem leak fix mod running (I know it doesn’t mean I don’t have a leak) if that isn’t working what else could I do. I had a video mem leak fix mod but it doesn’t work in 1.20.4
Certified P. Drizzy
what dh version is this
Just A Gent
Just A Gent2mo ago
Not sure the version of DH but it’s the one that supports iris and MC version 1.20.4 @Maybike (GMT+7)
SPINZ
SPINZ2mo ago
Is distant generation on? Lods will keep generating farther away and eventually use up memory
MarijnIsN00B
MarijnIsN00B2mo ago
Are they lag spikes or just average FPS keeps going lower and lower?
Just A Gent
Just A Gent2mo ago
That’s a good question that’s something I just learned about this morning and I’m not sure if it is or not I’ll have to take a look. Is it a feature in the most recent version I’m using the version with iris on 1.20.4 Both I get a fair amount of lag spikes and then eventually the fps drops down
SPINZ
SPINZ2mo ago
It’s been a feature
Just A Gent
Just A Gent2mo ago
I’m new here 😂
TheNewSky
TheNewSky2mo ago
Use f3 and look at the memory usage in the top right as you play. I had the issue where, after a while, it would hover around the max memory I allocated causing constant lagging due to the garbage collection. You can try to use the jvm arguments to make the garbage collector better
Just A Gent
Just A Gent2mo ago
What do you mean by that towards the end garbage, Jvm, and garbage collector. I’ve only recently switch from bedrock and modding on bedrock is no where near as complex as Java
TheNewSky
TheNewSky2mo ago
It’s not modding per say If you use the vanilla Minecraft launcher then in order to change how much ram you have allocated you have to edit the jvm arguments And the garbage collector clears out space in memory that isn’t being used anymore So if you allocated 12GB Minecraft might use up all 12GB given to it and then clear out the stuff from memory that it isn’t using anymore
Just A Gent
Just A Gent2mo ago
So does it clear it out itself or is there something I can do or do I just throw more ram at it
TheNewSky
TheNewSky2mo ago
You can change its behavior to make it work better using the arguments I can paste the ones I use in a bit But it will only help if the memory is what’s causing the performance drop
Just A Gent
Just A Gent2mo ago
Got it where do you go to change these is it in the place where you allocate cause I’m completely lost
TheNewSky
TheNewSky2mo ago
-Xmx6500M -Xmn256M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 go to where you changed the allocation and replace everything in that box with all this
TheNewSky
TheNewSky2mo ago
No description
TheNewSky
TheNewSky2mo ago
this page
Just A Gent
Just A Gent2mo ago
So obviously I need to check the mem in game but is this a normal thing to have to do or is it just random from pc to pc sort of thing @TheNewSky
TheNewSky
TheNewSky2mo ago
Depends on the mods you have I never had to do it until I downloaded a ton of mods
Just A Gent
Just A Gent2mo ago
Oh makes sense I’ll look into and see what happens