I saw this video and have some questions

Questions
234 Replies
Juan fernaflo
Juan fernafloOP11mo ago
Hey So I’ve had this problem Since 2022 January And I’ve decided not to say nothing and just play the game But the thing is I do minecraft pvp So my game stutters a lot I’ve tried optifine I’ve tried sodium + all the complements So I’ve also looked and someone told me id could be the garbage collector I’ve also tried so fix that with a mod called forgetmechunk And it’s always the same
Juan fernaflo
Juan fernafloOP11mo ago
The Diamond Knee Plate
YouTube
Fix minecraft garbage collection lag spikes 2022 easy tutorial JVM ...
Big thanks to the iris project discord server for helping me Also Big thanks to the java documentation https://docs.oracle.com/en/java/ anyway I know what you are here for so here is the code https://pastebin.com/q8qQUdhr
Juan fernaflo
Juan fernafloOP11mo ago
For example In this video Do you think it’ll help me Pls Ive been in more than 10 discord asking And everyone tells me the same But no one gives me a fix or answer I have a gtx 1060 16gb ram ryzen 3 2300x Even with my intel hd graphics laptop the stutters wasn’t there
IMS
IMS11mo ago
hey @PhantomGaming27249 I think this is literally just your JVM args lmao Anyway
Juan fernaflo
Juan fernafloOP11mo ago
Yeah I saw them in a YouTube video
IMS
IMS11mo ago
Game stuttering can be caused by a lot of things, have you tried running something like spark
Juan fernaflo
Juan fernafloOP11mo ago
Yes
IMS
IMS11mo ago
And what’s the output? Also, what Minecraft version are you on?
Juan fernaflo
Juan fernafloOP11mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Juan fernaflo
Juan fernafloOP11mo ago
This is an old log From like 2 weeks ago I can make a new one if you want I’ve tried updating my mods It all started In 1.17.1 And I use a lot of pvp mods And I have to update them 1 by 1 Then I updated to 1.19 All of the mods AGAIN
IMS
IMS11mo ago
Have you tried without all of them?
Juan fernaflo
Juan fernafloOP11mo ago
And now I’m on 1.20.1 Yes Still the same I’ve tried a lot bro
IMS
IMS11mo ago
I see the spark log indicates an unusual amount of time spent on the player but I assume that’s just being in a PVP server with a million plauers
Juan fernaflo
Juan fernafloOP11mo ago
Yeah I recorded that log in a pvp server
IMS
IMS11mo ago
And just to confirm, does this same issue happen in single player?
Juan fernaflo
Juan fernafloOP11mo ago
I think so I don’t play singleplayer Singoleyer*
IMS
IMS11mo ago
how do you play pvp then :agony: oh
Juan fernaflo
Juan fernafloOP11mo ago
Yeah I can check if you want
IMS
IMS11mo ago
sadly, this sounds like your PC just can't catch up overall Ryzen 3 isn't particularly fast
Juan fernaflo
Juan fernafloOP11mo ago
Then why does my intel hd graphics pc Don’t happen that I’ve been through 3 pcs
IMS
IMS11mo ago
the GPU isn't everything, despite what everyone says
Juan fernaflo
Juan fernafloOP11mo ago
I’ve been through 3 pcs Even one that has a better cpu Than this one I5 11th gen
IMS
IMS11mo ago
and they all have the problem, or only yours?
Juan fernaflo
Juan fernafloOP11mo ago
All of them
IMS
IMS11mo ago
hm
Juan fernaflo
Juan fernafloOP11mo ago
Even my friends have them
IMS
IMS11mo ago
then this sadly just sounds like unavoidable spikes
Juan fernaflo
Juan fernafloOP11mo ago
But I get more stutters
IMS
IMS11mo ago
everyone gets them generally, it's pretty random how bad they are
Juan fernaflo
Juan fernafloOP11mo ago
Bro its so annoying
IMS
IMS11mo ago
I can send you some JVM args that might help first, you'll need to upgrade your game to run on Java 21
Juan fernaflo
Juan fernafloOP11mo ago
I don’t think so cause they don’t get a ton Like I do
IMS
IMS11mo ago
you can get java 21 at https://adoptium.net
Home | Adoptium
Eclipse Adoptium provides prebuilt OpenJDK binaries ...
Juan fernaflo
Juan fernafloOP11mo ago
Hmmm ok Wait Can you Be in. Call
IMS
IMS11mo ago
sadly, no
Juan fernaflo
Juan fernafloOP11mo ago
So I can share screen Oh ok
IMS
IMS11mo ago
it's pretty simple, though I do recommend changing launchers to make it easier
Juan fernaflo
Juan fernafloOP11mo ago
What do you mean? I use the premium launcher
IMS
IMS11mo ago
Prism Launcher - Home
An Open Source Minecraft launcher with the ability to manage multiple instances, accounts and mods. Focused on user freedom and free redistributability.
Juan fernaflo
Juan fernafloOP11mo ago
Oh
IMS
IMS11mo ago
it's a premium launcher, but designed for modding and stuff
IMS
IMS11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
Isn’t that a cracked launcher
IMS
IMS11mo ago
nope need to log in
Juan fernaflo
Juan fernafloOP11mo ago
Also, I’ve been through tlauncher and a lot of launchers ( I have a premium account) I wanted to check if the launcher was the problem
IMS
IMS11mo ago
you don't need this, it'll just make the steps i'm giving much easier because it has mod installers for you and such
IMS
IMS11mo ago
No description
IMS
IMS11mo ago
you don't need to manually get every mod it can also update mods for you
Juan fernaflo
Juan fernafloOP11mo ago
Oh Ok I’m installing the new Java now
IMS
IMS11mo ago
👍 if you get prism, it'll guide you through setting it up it's pretty simple
Juan fernaflo
Juan fernafloOP11mo ago
oh wait i already now that website i tried that website already
IMS
IMS11mo ago
nice like i said, it won't help with the stutters on it's own
Juan fernaflo
Juan fernafloOP11mo ago
it did not work oh
IMS
IMS11mo ago
it just makes it easier to find all the options to possibly fix them
Juan fernaflo
Juan fernafloOP11mo ago
hmmm i dont know if i should install prism
IMS
IMS11mo ago
it's up to you, really i can help you either way
Juan fernaflo
Juan fernafloOP11mo ago
No description
IMS
IMS11mo ago
just click next
Juan fernaflo
Juan fernafloOP11mo ago
do i need to check this other boxes? ok why does it say with hotspot lol ok i did it
IMS
IMS11mo ago
hotspot is the JVM okay, go to your launcher, and then go to the profile
Juan fernaflo
Juan fernafloOP11mo ago
yeah
IMS
IMS11mo ago
similar to where you set all the JVM stuff from that video
Juan fernaflo
Juan fernafloOP11mo ago
yeah
IMS
IMS11mo ago
but instead, click on Java installation now, you need to navigate to C:\Program Files\Adoptium (or eclipse adoptium) and then there should be one more folder in there select that as the java install, and save try opening the game now, if it doesn't open you didn't do it right
Juan fernaflo
Juan fernafloOP11mo ago
in bin?
No description
IMS
IMS11mo ago
nope, just click open right there oh wait actually, yes
Juan fernaflo
Juan fernafloOP11mo ago
cant
IMS
IMS11mo ago
go to bin and select javaw.exe
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
do i check this box
IMS
IMS11mo ago
uh, what does that say?
Juan fernaflo
Juan fernafloOP11mo ago
skip java runtime check
IMS
IMS11mo ago
yes then save, and see if the game still opens
Juan fernaflo
Juan fernafloOP11mo ago
when i tick it it says it can cause instability ill open the game now it let me
IMS
IMS11mo ago
cool, open a world or a server, and go to f3 does it show java 21 in the top right?
Juan fernaflo
Juan fernafloOP11mo ago
yeah
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
i loose a lot of fps tho but yeah
IMS
IMS11mo ago
nice huh? it should be the same
Juan fernaflo
Juan fernafloOP11mo ago
yeah strange what gpu do you have?
IMS
IMS11mo ago
3060 ti
Juan fernaflo
Juan fernafloOP11mo ago
oh nvm
IMS
IMS11mo ago
okay
Juan fernaflo
Juan fernafloOP11mo ago
yeah so what do i do now
IMS
IMS11mo ago
so, close the game go back to that menu delete the JVM arguments you currently have (or set them back to default) and try this set -Xms5G -Xmx5G -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:+PerfDisableSharedMem -XX:-ZUncommit -XX:+ParallelRefProcEnabled
Juan fernaflo
Juan fernafloOP11mo ago
ok im opening the game now which ones better the videos or this one
IMS
IMS11mo ago
i don't know, that's why you're testing it :ioa:
Juan fernaflo
Juan fernafloOP11mo ago
oh ok
IMS
IMS11mo ago
it's different for everyone
Juan fernaflo
Juan fernafloOP11mo ago
imn gonna test still lags
IMS
IMS11mo ago
is it worse?
Juan fernaflo
Juan fernafloOP11mo ago
no better
IMS
IMS11mo ago
then that's probably the best you can do for now
Juan fernaflo
Juan fernafloOP11mo ago
hmmm then do you get lag spkies? but why doesnt my other pcs dont happen and theyre worse
IMS
IMS11mo ago
i also get lag spikes they're different for everyone
Juan fernaflo
Juan fernafloOP11mo ago
yeah but i have a i5 11th gen pc and still lags cant it be the garbage collector?
IMS
IMS11mo ago
it could be, or it could be something entirely different i'm not too experienced in that
Juan fernaflo
Juan fernafloOP11mo ago
oh should i try the videos arguments
IMS
IMS11mo ago
sure
Juan fernaflo
Juan fernafloOP11mo ago
ive had 2 years since this problem started
IMS
IMS11mo ago
it doesn't hurt to experiment
Juan fernaflo
Juan fernafloOP11mo ago
lol the video allocates 8g should i allocate 8g too?
IMS
IMS11mo ago
ehhh, you can try the more ram, the more memory it has but also the longer a GC cycle will take
Juan fernaflo
Juan fernafloOP11mo ago
so is it better the longet it takes?
IMS
IMS11mo ago
no, shorter each GC cycle is what you see as a lag spike
Juan fernaflo
Juan fernafloOP11mo ago
oh look everytime this
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
mem thing goes to like 90% it stutters then it resets
IMS
IMS11mo ago
yep, that's GC
Juan fernaflo
Juan fernafloOP11mo ago
so since when was this implemented?
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
i dont hink cpu is the problem doesnt even go above 50%
IMS
IMS11mo ago
GC has always been in the game
Juan fernaflo
Juan fernafloOP11mo ago
then why did it start for me in 2022
IMS
IMS11mo ago
no clue
Juan fernaflo
Juan fernafloOP11mo ago
in 2021 i used to play in a i5 5th gen pc with integrated graphics and no stutters in like 2 hours of playing and thats why quit minecraft cause of stutters and 2 weeks ago i came back
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
it doesnt always stutter sometimes it stutters at 60% @IMS This also Used to happen In 1.19
Juan fernaflo
Juan fernafloOP11mo ago
For example in lunar client it doesn’t lag In this video You can see That even my friends game lags He has 16gb ran I5 12th gen and rtx 3060
PhantomGaming27249
people still using that stuff from way long time ago i should probably write some updated ones and wait no these aren't mine they are shenandoah I tweaked the akair flags a while ago
Juan fernaflo
Juan fernafloOP11mo ago
Can you help me? The lags every like 1 minute Are unsoportable
PhantomGaming27249
Can you provide me some info, what jdk are you using and what CPU do you have? Also how much memory are you allocating
Juan fernaflo
Juan fernafloOP11mo ago
Gtx 1060 Ryzen 3 2300x This one 8gb @PhantomGaming27249
PhantomGaming27249
Are you allocating 8gb or have 8gb?
Juan fernaflo
Juan fernafloOP11mo ago
Allocating I have 16gb
PhantomGaming27249
Ok
Juan fernaflo
Juan fernafloOP11mo ago
I am using some specials jvm arguments
PhantomGaming27249
What java version are you using
Juan fernaflo
Juan fernafloOP11mo ago
I just sent it This one Adoptium java 21
PhantomGaming27249
Ok try generational zgc
Juan fernaflo
Juan fernafloOP11mo ago
What
PhantomGaming27249
Different gc than Shenandoah
Juan fernaflo
Juan fernafloOP11mo ago
What the hell are you talking about
PhantomGaming27249
On mobile rn but can send some alternative args in a bit
Juan fernaflo
Juan fernafloOP11mo ago
I already am using some special arguments I saw in a YouTube video That are supposed to help Ok
PhantomGaming27249
Those aren't great and a bit dated
Juan fernaflo
Juan fernafloOP11mo ago
Ok then When you can send them Pls 2 years With this problem
PhantomGaming27249
The stutter might also be lighting if so try starlight or phosphor
Juan fernaflo
Juan fernafloOP11mo ago
Already have those I’ve tried everything
IMS
IMS11mo ago
The args i gave them are GZGC
PhantomGaming27249
they have string dedup on?
IMS
IMS11mo ago
a
PhantomGaming27249
I would add -XX+UseStringDeduplication could try disabling -XX:+PerfDisableSharedMem / dropping that flag I have had some issues with that on windows also get rid -XX:-ZUncommit @Juan fernaflo
-Xms6G -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX+UseStringDeduplication -XX:+ParallelRefProcEnabled
-Xms6G -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX+UseStringDeduplication -XX:+ParallelRefProcEnabled
try these the solution I have found that works for my system was c2me (optimized disk io settings) + a really fast ssd + a custom modified version of graalvm ee I replaced the memory allocator with mimalloc and that helped a decent bit they are still there but they are sub 33ms I don't think its usually gc anymore and mostly disk writes and lighting which is very much cpu dependent gc spikes make it worse though cause they can overlap on autosave and lighting which tend to allocate a lot of memory @Juan fernaflo if you don't have it grab modern fix and ferrite core they help with allocation rate a lot
Juan fernaflo
Juan fernafloOP11mo ago
Should I use these? I already have those
PhantomGaming27249
give them a try to see if its a bit smoother
Juan fernaflo
Juan fernafloOP11mo ago
I have 56 mods And like 50 of them are Optimization mods Rest are dependencies And like 4 are pvp mods
PhantomGaming27249
try the above args
Juan fernaflo
Juan fernafloOP11mo ago
Toro health, apple skin, durability viewer Ok I’ll try
PhantomGaming27249
the ones I posted they might help
Juan fernaflo
Juan fernafloOP11mo ago
Yeah I’ll try tomorrow I’m not home
PhantomGaming27249
ah ok @IMS did you see graal is getting generational zgc?
IMS
IMS11mo ago
epic
PhantomGaming27249
end game jvm coming
Juan fernaflo
Juan fernafloOP11mo ago
doesnt let me launch
PhantomGaming27249
whats the error you get
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
see
PhantomGaming27249
what does the launcher/log say
Juan fernaflo
Juan fernafloOP11mo ago
i just sent you a photo
PhantomGaming27249
thats not the log thats the popup error the log is the part were you see all the text
Juan fernaflo
Juan fernafloOP11mo ago
this is latest.log @PhantomGaming27249
PhantomGaming27249
reading it ok usually java error go to the log in the launcher what does it say in there not the log file
Juan fernaflo
Juan fernafloOP11mo ago
what do you mean how do i see that
PhantomGaming27249
which launcher do you use?
Juan fernaflo
Juan fernafloOP11mo ago
premium
PhantomGaming27249
premium?
Juan fernaflo
Juan fernafloOP11mo ago
yes the normal one
PhantomGaming27249
oh you mean the vanilla launcher?
Juan fernaflo
Juan fernafloOP11mo ago
yes
PhantomGaming27249
there should be a console output option in the launcher
Juan fernaflo
Juan fernafloOP11mo ago
there is not
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
this??
PhantomGaming27249
yeah
Juan fernaflo
Juan fernafloOP11mo ago
ok help
PhantomGaming27249
-Xms6G -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled
-Xms6G -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled
try these instead I believe there a was a typo
Juan fernaflo
Juan fernafloOP11mo ago
ok it launched but just let me see if theres still stuttering
PhantomGaming27249
sometimes it takes a moment to warmup
Juan fernaflo
Juan fernafloOP11mo ago
i can share screen can you join a vc ? so you can see
PhantomGaming27249
can't rn
Juan fernaflo
Juan fernafloOP11mo ago
wha ttype of stutters oh just see dont talk
PhantomGaming27249
I gotta run soon so lets be quick
Juan fernaflo
Juan fernafloOP11mo ago
yeah still stutters
PhantomGaming27249
f3+2 to bring of the lag graph
Juan fernaflo
Juan fernafloOP11mo ago
i have 56
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
mods of optimization what dont work
PhantomGaming27249
when your in game do f3+2 send a screenshot with that active
Juan fernaflo
Juan fernafloOP11mo ago
i am
PhantomGaming27249
not in the menu are you on a a laptop
Juan fernaflo
Juan fernafloOP11mo ago
no bro it just crashed my game
PhantomGaming27249
opening f3+2
Juan fernaflo
Juan fernafloOP11mo ago
yes
PhantomGaming27249
try disabling better chunk loading actually
Juan fernaflo
Juan fernafloOP11mo ago
deleting the mod?
PhantomGaming27249
just take it out for a time also how long were you in the game before before you quit sometimes there is a delay/warmup before its smooth like you need to play for a bit
Juan fernaflo
Juan fernafloOP11mo ago
yeah like 1 minute but yeah it stutters a lot i had a intel hnd graphics laptop and it didnt stutter and i bought this pc to play minecraft and i cant
PhantomGaming27249
when you do f3+2 these graphs should come up
No description
PhantomGaming27249
oh wait your on 1.20.1? do f3+alt
Juan fernaflo
Juan fernafloOP11mo ago
yeah i am doing it
PhantomGaming27249
sorry they changed it from f3+alt in 1.20.3 I believe
Juan fernaflo
Juan fernafloOP11mo ago
doesnt work oh
PhantomGaming27249
? see anything
Juan fernaflo
Juan fernafloOP11mo ago
f3 + alt?
PhantomGaming27249
yes
Juan fernaflo
Juan fernafloOP11mo ago
i think it was the other mod its not lagging as much
PhantomGaming27249
better chunk loading? yeah that one can cause some isssues in my experience especially if you have c2me + starlight it throttles chunk and lighting to try and make it smoother but actually causes lag spikes sometimes
Juan fernaflo
Juan fernafloOP11mo ago
yeah its not lagging bro i love you this shit was so annotying bro
PhantomGaming27249
no worries glad I could help
Juan fernaflo
Juan fernafloOP11mo ago
brop i had 2 years
PhantomGaming27249
now I gotta run to go grocery shopping
Juan fernaflo
Juan fernafloOP11mo ago
wirh this probkem
PhantomGaming27249
later
Juan fernaflo
Juan fernafloOP11mo ago
yeah bro thx i had 3 pcs with this problem
PhantomGaming27249
legit don't worry about it
Juan fernaflo
Juan fernafloOP11mo ago
and 2 years bro 2 YEARS finally i can pvp with no lag
PhantomGaming27249
glad I could help 🙂
Juan fernaflo
Juan fernafloOP11mo ago
hey one more question can i share my mods folder and just like can you see what other mods should i uninstall delete i knnow you cant rn but maybe later
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
No description
Juan fernaflo
Juan fernafloOP11mo ago
here i have 2 optimization mod packs + like 5 of my own mods
PhantomGaming27249
I can glance at them later I really gotta go now though store closes soon and I am out of food
Juan fernaflo
Juan fernafloOP11mo ago
yeah its ok but thanks either way you helped a lot 😁
PhantomGaming27249
@Juan fernaflo there isn't anything I see immediately but I can take a closer look later if you want Think you should be good
Juan fernaflo
Juan fernafloOP11mo ago
oh ok thx yeah if you want to you would help me a lot you just helped me a lot you dont know bro pvping smooth is so good and i always died cause of the stuttering it messend up my aim i just got a good killstreak
PhantomGaming27249
Looking on my phone you have two versions of immediately fast might get rid of one of them Think your good now
Juan fernaflo
Juan fernafloOP11mo ago
oh ok thx a lot really good night bro @PhantomGaming27249 hey bro the lag is still there :( and now its like before agani it was smoth and after some time it started lagging maybe something is still there cause the chunk loading is a lil bit low like if it had lazy chunk loading idk maybe it has something to do
PhantomGaming27249
Hmm not sure what else to do
Want results from more Discord servers?
Add your server