mojira.dev

Econical

Assigned

No issues.

Reported

No issues.

Comments

I found a fix to this issue with a small side effect being every 30 minutes you get a 5 second pause. All you have to do is add one of the two JVM Argument lines to your minecraft JVM Arguments and make sure you are on Java 22. How to edit JVM Arguments on minecraft launcher --> (Minecraft launcher > java edition > installations > find the version you want to not lag and click the three dots > edit > more options > find -XX:+UseG1GC in jvm arguments > delete that and everything after it > paste either 1 or 2 > click save)

1. "-XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99"

or

2. "-XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysActAsServerClassMachine -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99"

Additional info i thought might be useful. I started experiencing this back in late august after not playing for almost 2 months. I didn't change anything on my pc that would cause this. I also benchmarked other games being but not limited to, GTA5, Cyberpunk 2077, Ready or Not, Contraband Police, Payday 3, Red dead redemption 2 and Satisfactory. This issue did not occur in any of them and the majority of them were 100 fps high to ultra settings. So its very likely this isnt a pc thing and more like a minecraft thing. I tried fixing the issue by playing minecraft with and without mods, using different mod "loaders" (fabric and quilt), updated graphics card drivers, used different launchers (default, multimc, curseforge, lunar, badlion and feather), changed settings in nvidia control panel and lowered and high-ed my allocated ram. None of this worked except for the jvm arguments