I have no idea what is wrong with my game.
Stuttering? Lag? Latency? Idk even what to call it. I have tried allocating all different kinds of RAM,
Can't even figure out how to disable certain mods to test without deleting them from a system folder.
I am using flowstatevideo's Better Adventures + pack on CurseForge. The launcher says Fabric. At this point idk what the difference is. It says there are 125 mods on it, but my game says I'm running 300. I tried turning off my shaders, but then chunks wouldn't generate. I just want to play good looking and nice running minecraft. ;_;
I have a 16x AMD Ryzen 7 5800x 8 Core Processor.
66 Replies
/logstored
You should send your
latest.log
file to provide additional useful information.
Logs are usually located in the .minecraft/logs
directory.
On Windows: %appdata%\.minecraft\logs
On Linux: ~/.minecraft/logs
On Mac: ~/Library/Application Support/minecraft/logs
Please upload the file to mclo.gs instead of sending the raw file. This makes reading the contents of the file a lot easier and improves the chances of you getting the help needed.
After uploading the file, click on Save
and send the link.How mych RAM have you allocated to MC?
What are your custom JVM/GC flags?
i tried different amounts from 8g to 18g
What quality and CPU load setting do you have in DH?
medium quality and minimal impact
Allocate 12 GB if you have 32 in your PC
If you have 16 in the PC try allocating 10 GB
Also add this flags:
-Xms24576m -Xmx24576m -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+UseFastUnorderedTimeStamps -Xlog:async
If they will crash either remove -XX:+ZGenerational
or better sitch your JAVA version to 21+
.im lost on the second part of that response
What launcher are you using?
i launch the pack through curseforge, which opens the MC launcher and im able to do it in there, but the normal MC launcher doesnt include the installations i have for my curseforge modpacks
im able to alter the ram in curseforge as well as the actual launcher so i think on both fronts im good
I would advice you to switch from CurseForge to either Modrinth APP or Prism
Modrinth APP is easier to use with nicer GUI
Prism is more advanced
That is because I have no idea how CurseForge works and how to set it up + it has bad logs
You can stay on CurseForge though, but you will have to google yourself how to add the GC flags to it.
In vanilla launcher you add the GC flags in the same place you added the RAM allocation flags
This is how Modrinth APP looks:
let me see if the vanilla launcher will save the flags if i edit them now
ive been afraid to jump to another mod site cause they all seem so sketchy
i see stuff like this, and even though the founder of the app commented saying its fine, i still get sketched out
do i add those things to arguments or the java executable
Currently there are 2 big well knows mod sites:
- Modrinth
- CurseForge
Modrinth is more creator friendly and has less description bugs, some mods are available only on 1 or only on the other
how do i put those things into the launcher
What are
those things
?the code you told me to copy into the launcher
where and how do i put them in
In Modrinth, inside the settings, feild
Java arguments
what about the vanilla launcher? same? if so how am i meant to include them because i tried pasting them with the current text in there and it didnt work
In vanilla, same place you put the RAM allocation flag
and where do i paste the text? cause before it didnt work
Same place you pasted RAM allocation flag:
-Xmx12G
i didnt paste anything before this
am i supposed to paste that whole text brick to replace the xmx12g?
and leave all the rest the same
paste it after -Xmx12G
didnt work
the first 2 things in the line are "-Xmx12064m -Xms256m -"
after that it starts listing directory things
can you send what you have there now?
Between
-Xms256M
and -Dminecraft.applet...
paste -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+UseFastUnorderedTimeStamps -Xlog:async
didnt work
What didn't work?
you said remove one if it crashes right
whenver i hit play it just crashes before it loads
remove
-XX:+ZGenerational
or better switch your JAVA version to 21+switched java, still didnt work
ill remove the thing
that also didnt work
This is still CurseForge launcher?
when i launch my modpack through curseforge it opens up the vanilla launcher with my modpack installations on it
CurseForge had more viruses then Modrinth for now
should i just remove curseforge from my computer then? i also play wow and my addons for that are all in there. idk if wow players use another mod site
CurseForge and Modrinth are both websites and apps
alright
so what should i do
The decision is yours.
I've never used CurseForge and it is a pain to deal with.
I won't be able to help you with GC tuning, that’s the main cause of stutter, if you stay with it.
You can switch to easy to use Modrinth APP
You can move all your modpack from Curseforge to Modrinth by moving a couple folder, again I have no idea where are they located
You can also wait for someone with more CurseForge experience
Even if you switch now, I will be able to properly help you only tomorrow
Modrinth
Download the Modrinth App!
The Modrinth App is a unique, open source launcher that allows you to play your favorite mods, and keep them up to date, all in one neat little package.
thats fine, ill check it out. i can just keep posting here once i get it going right?
Yea you can
i launched it through modrinth, tried inputting the arguments again, didnt work. facing the same issue. i think it is worldgen and shader based. but idk. game just starts lagging real hard after a few minutes. and i cant mine stone sometimes
So what is the current state of the game?
You run JAVA 21 with all the flags I pasted here and 12GB of RAM?
The game does not crash, it just has very low fps?
Or the game has high average fps, but stutters a lot?
Is the stutter regular or irregular?
Does disabling shaders or resourcepack help?
/logs
You should send your
latest.log
file to provide additional useful information.
Logs are usually located in the .minecraft/logs
directory.
On Windows: %appdata%\.minecraft\logs
On Linux: ~/.minecraft/logs
On Mac: ~/Library/Application Support/minecraft/logs
Please upload the file to mclo.gs instead of sending the raw file. This makes reading the contents of the file a lot easier and improves the chances of you getting the help needed.
After uploading the file, click on Save
and send the link.i have the latest java, couldnt figure out how to make the flags work, i believe i put 12 gigs in, the game crashes occasionally, but only when im messing with some settings, fps seems fine, i just get instances of... i really dont even know if its lag. the game just... lags more and more the longer it is open, which leads me to think it is worldgen. stutter might be what it is? the game runs fine without any mods or shaders on, played regular vanilla last night for hours
i dont want to sacrifice render distance/ DH or shaders cause thats most of the reason im trying to make this work
i feel like my machine specs can handle it no problem
its just something internal thats the issue
Look in the F3 for RAM usage, if with time the average memory usage rises and the sudden drop become more frequent some mod has a memory leak, you would need to find which mod (or mod combo) it is and report the bug for it to get fixed
If during those sudden RAM usage drops is when the game "lags" then this is GC stutter, the best fix for that are custom GC tuning flags
.
.
Here are 4 sets of GC tuning flags I have on hand:
-
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+UseFastUnorderedTimeStamps -Xlog:async
Requires JAVA 21+, this are in theory one of the best flags you can get
- -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -XX:+UseNUMA
An alternative to the first flag set, some say it performs better, some say it performs worse. Good thing to check if the first set did not provide sufficient result. On some JAVA versions -XX:-UseBiasedLocking
can be added to further reduce latency!
- -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+AlwaysPreTouch -XX:+UseFastUnorderedTimeStamps
Cut down version of the first flag set, less idiot proof, but should work on older JAVA and in theory still be better then the flags from below
- -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true
Old flags from many years ago, still relevant and better then default, slightly modified to fix a memory "leak" and tuned for bigger allocation amounts. Works even with very old JAVA versions and should work on every system
They should be put just after RAM allocation flags if those are present (e.g. Modrinth has a slider so you don't need to also put in the allocation flags)
And should replace every other flag that is present (Only on most launchers! E.g. CurseForge has some of its own flags, IDK which should be replaced and which should be kept)
Other thing that is worth considering is adding manually flags: -Xms
and -Xmx
(example: -Xms12G -Xmx12G
) setting this 2 manually to the same value will in theory give slightly better performance, but will result in constant (in the example 12 GB) memory reservation (usage in task manager). If your PC does not have enough RAM to sustain constant X GB usage from MC, you can set -Xmx
higher then -Xms
, and by default that is what happens. Boosting -Xms
as close to -Xmx
as possible might help a bit, but if they values are not equal the performance change will be negligible
Personally I feel less stutter from ZGC, then with Shenandoah though I hear stories of polar opposite.
IDK how to generate frame-time graph, it would be nice if someone would compare those 4 sets of flagshere is how it works for me, i load the game, it works fine for like 3 minutes, then just lags the life out of itself. no waves or dips into better or worse, just functioning nearly perfectly, to not at all. and the only culrpit in my mind is worldgen, cause thats the only thing that changes from launch to 3 minutes in
the ram goes up and down 20-30% at a time, and does peak out, but there dont seem to be sudden drops to like 0 or anything
/logs
You should send your
latest.log
file to provide additional useful information.
Logs are usually located in the .minecraft/logs
directory.
On Windows: %appdata%\.minecraft\logs
On Linux: ~/.minecraft/logs
On Mac: ~/Library/Application Support/minecraft/logs
Please upload the file to mclo.gs instead of sending the raw file. This makes reading the contents of the file a lot easier and improves the chances of you getting the help needed.
After uploading the file, click on Save
and send the link.how do u think i should approach
Do /binary search to find most performance intensive mods in the pack and remove them
Try a binary search and figure out which mod is causing it.
So disable half of the mods, see if issue is still there, if yes disable half again etc etc until you find the mod that's causing the issue.
how do i do that?
so i ran the modpack last night without shaders, and it ran better but still not good at all
You:
- open the mods folder,
- select half of the files,
- move them to a new folder,
- try to run the game, it will crash and show you which library mods are missing
- bring the required library mods back
- start the game and check the performance
If it will be significantly better, you know it is one of the mods you removed
Repet until you find the most performance intensive mods, removed them and you're happy with performance
Or buy a better PC
can i do this through modrinth? it seems there is a way to toggle mods if i unlock the instance
does that mean i need to have an instance running
Yes, you can just disable half or 1 or whatever amont on Modrinth
but i have to have an instance running right
nvm its still not letting me toggle
found the setting, my b lol
you have to stop the instance in order for Modrinth to properly disable the mods
yep
i disabled DH and it still seems to be a little choppy. any idea about addons that are usual suspects before i do a binary search?
im getting real low fps/dips and 100% peaking gpu usage, with DH disabled
turned off shaders and it got a tiny bit better. idk what the issue is, i have a pretty decent computer and graphics card
Sound Physics, Create
so i really do think the issue is worldgen. i have every mod enabled except DH, and i have my distance set up to max. the game is fine at like 30fps for a few minutes until the chunks load. my question is, how powerful of a machine do you need to run these mods/distances? seems nuts
ive got an 8core ryzen 7 5800X. that sounds like more than enough for this. unless im wrong, but i might just have some settings needing to be tweaked to use the card to its full potential
yeah, literally if i turn render distance down, everything is fine
in vanilla, completely unmodded, my render distance on max is fine too. so im like 95% sure its some setting with DH
Then your PC is cursed as you're the only one
Contact an exorcist
dang
like actually though what could it be lmao
do i just not have a powerful enough card?
cause it seems like only render distance/DH is causing the issue
Who would have though that rendering additional 128 render disatance would decrease fps
Decrease vanilla RD if you can
Set it to e.g. 12
or 8
im aware that a large RD creates issues, im asking if there is a way around it because i feel like my pc should easily be able to handle that given other games i run on max settings
or if it is something in distant horizons itself that is messing up