Minecraft FPS Drops on new pc
I cant seem to fix this issue and i dont know why it happens. With or without mods my game runs fine for 5-10 mins then suddenly dips to the single digits i have tried optifine fabric and vanilla and they're all the same
MC 1.21.10
5070TI
Ryzen 7 9800X3D
32GB DDR5 6000MHZ
MC 1.21.10
5070TI
Ryzen 7 9800X3D
32GB DDR5 6000MHZ
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
What performance mods are you using when running with fabric?
Also Java 21 did significantly improve G1GC as well as ZGC. It's not something that's up for debate really?
My other questions/ideas at the moment are:
\- Are you using any alternative launcher (like Prism/MultiMC/etc).
\- Does it happen on older versions of Minecraft too?
\- Have you tried installing an alternative source of Java 21 (such as OpenJDK or Adoptium)?
Other than that idk
Java edition uses a garbage collector/cleanup method by. In simple terms, this means that once your RAM usage hits a certain threshold, or enough time has passed, it does a scan of what it has stored in RAM and dumps what’s unneeded. However, Java isn’t the most efficient at this, and each cleanup pass takes time. When you have 6 gigs of RAM allocated, there is both less RAM to scan and less RAM to cleanup, so while it will run the garbage collector more often, it can do so quickly and efficiently. This means you may have more short term smaller FPS fluctuations while the cleanup job runs.
However, when you allocate 16 gigs, things get difficult. Java’s inefficiencies make it take longer to even scan the RAM, much less actually identify the garbage and remove it. This means that each time the garbage collection job runs a significant amount of processing power goes to that job, and your game begins to have much more noticeable frame drop while that’s running.
So while more RAM sounds better, it actually isn’t. Tuning in to the Minecraft instance in questions actual need (6-8gb, usually, even in modded instances) for RAM is one of the important parts of performance optimization because of Java’s bad garbage collection/cleanup.
Regardless it's still incredibly naive to use more RAM than you actually need - vanilla and light modpacks will never really need more than 4GB allocated memory unless you're like... playing amplified worlds with 50 datapacks lol
Typically debugging poor performance involves turning off all the options and then turning them back on one by one until the game dies
Also when that is spiking on the left. Hide the `F3 + 2` charts and do `F3 + 1` instead to see what is causing issues.
If it is, it steongly suggest a driver issue. Did you downloaded the lasted one from the nvidia website ?
You might check to make sure what graphic card you are using.
My daughter recently had this issue, and we found out it was using her AMD's processors built in video card, but outputting on the 4070 TI she has installed.
There was a setting somewhere in windows we had to force from "automatically" detecting video card to force use her 4070 TI.
Her big issue was that minecraft wouldn't even load. We were trying to load a large modpack to play together, and it kept crashing.
She was able to load up normal minecraft, and a few mods(lower end)...but once you get to a full modpack it was crashing.
I finally tossed the Java logs of the crash into an AI system, Gemini for those wondering. The AI was able to tell me that her video card wasnt good enough to run minecraft and suggested getting a stand alone video card, as her system was running on a CPU based GPU system.
To test this, we reloaded minecraft, and F3 detected her 4070 TI.
After more research through the AI, they suggested we see what windows was programmed to run on, and it was on "automitcally chose GPU"... swapped all the drop downs to her 4070 TI, and had to add a manual java.exe and another file for the mod pack to use her 4070 TI.
I recently bought a new monitor (Samsung 27" G81SF) which isn't G-Sync compatible and when I had G-SYNC enabled on that monitor, the frames dropped significantly.
Asides from that, what fps is your minecraft settings set to, and is your windows display settings on your monitor correct, as in the refresh rate?
anyways, are you using any 3rd party overlay software like RTSS/Rivatuner or GPUTweak III? These will break the game by injecting into the Java process and causing the logfile to get spammed with OpenGL errors which could accumulate after several minutes. Check your latest.log file
Otherwise we could take a Spark profile but the fact that it happens in vanilla is pretty strange.
I cant beleive nobody has asked you to do this yet put turn off your shaders. Shaders can cause huge frame drops no matter the pc if you have the settings turned up all the way.
Since it only starts after a while and other games are fine and dont have this issue, i would guess this is a memory leak. How much ram is dedicated to mc in the launch options? Shouldnt be below 4gb or above 8gb with how much ram you have. I would try to reinstall sodium and the other performance mods as well.
Seem like you are using integrated APU instead