The game seems to stutter a lot on my laptop. Fps go from 150 to 30 to sometimes 16-17 and the game will stay at low frames making it feel really choppy. The gpu usage also stays near 100% and the cpu at 70%-80%. I play at 1920x1080. I've tried countless ways to fix this issue but still no luck.
My specs:
CPU: Intel Core i5-1035G1 @ 1.00 GHz 1.19 GHz
GPU: Nvidia Geforce MX230
RAM: 8 GB
OS: Windows 10 Pro x64
The game is installed on an HDD. My friend also plays minecraft on his laptop which has an 8th gen i5 (integrated graphics) and he says that the game runs really smooth at about 100 fps. My laptop of course has better specs than his so I really don't understand why I'm facing these issues.
Your CPU is probably too hot to maintain boost speed, so it's throttling to the base 1/1.2 GHz which is way too low for minecraft. The only solution I can think of is to limit your FPS to lower CPU usage overall.
As it's shown into your screenshot, you're not even reaching 2GB, so try to lower it in your command line: with 8gigs of RAM you should not allocate more than 4 GB of heap anyway.
-Xmx6G -> -Xmx2G
See it this improves, it should as probably your PC is swapping to disk with 6GB.
I actually watched a video where the guy said that if you have 8 gb ram then allocate 6gb to minecraft for better fps. But bringing it back down to 2 did help a little. FPS still stutter alot tho from 30 to 60 to 90 to 20 and playing the game like this is very irritating. Also, I don't know if this is normal but when playing the game, Java uses 100% of GPU and sometimes CPU also goes to 100%
I actually watched a video where the guy said that if you have 8 gb ram then allocate 6gb to minecraft for better fps.
This is complete rubbish.
In a post I can't describe in any meaningful way how Java Heap memory is managed, but even with a modern Garbage Collection like G1GC used by Minecraft (I use Shenandoah, which is slightly better), you're still going to need more CPU if you add more Heap Memory. More CPU means less FPS, plain.
The difference by adding Heap is if your software is using more heap that you have allocated as a maximum, in this case the GC algorithm is running all the time to try to free memory and horrible things happen (like dropping well below 1FPS!), obviously in this case you need to raise your maximum heap but this almost never happens in vanilla (one exception is if you're using commands or megafarms which generates lots and lots of entities, like XP orbs or drops), but it happens all the time with modern modpacks with hundred of mods.
The game seems to stutter a lot on my laptop. Fps go from 150 to 30 to sometimes 16-17 and the game will stay at low frames making it feel really choppy. The gpu usage also stays near 100% and the cpu at 70%-80%. I play at 1920x1080. I've tried countless ways to fix this issue but still no luck.
My specs:
CPU: Intel Core i5-1035G1 @ 1.00 GHz 1.19 GHz
GPU: Nvidia Geforce MX230
RAM: 8 GB
OS: Windows 10 Pro x64
The game is installed on an HDD. My friend also plays minecraft on his laptop which has an 8th gen i5 (integrated graphics) and he says that the game runs really smooth at about 100 fps. My laptop of course has better specs than his so I really don't understand why I'm facing these issues.
Any help would be greatly appreciated.
Post a screenshot with F3 enabled and your JVM arguments.
My JVM arguments:
-Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
And I have attached a screenshot with F3 enabled.
Your CPU is probably too hot to maintain boost speed, so it's throttling to the base 1/1.2 GHz which is way too low for minecraft. The only solution I can think of is to limit your FPS to lower CPU usage overall.
Creator of Metroid Cubed 3, a Metroid-themed mod! Become a donator today!
That did not help at all. It was as if I tried nothing.
You're playing vanilla with 6GB heap.
As it's shown into your screenshot, you're not even reaching 2GB, so try to lower it in your command line: with 8gigs of RAM you should not allocate more than 4 GB of heap anyway.
-Xmx6G -> -Xmx2G
See it this improves, it should as probably your PC is swapping to disk with 6GB.
I actually watched a video where the guy said that if you have 8 gb ram then allocate 6gb to minecraft for better fps. But bringing it back down to 2 did help a little. FPS still stutter alot tho from 30 to 60 to 90 to 20 and playing the game like this is very irritating. Also, I don't know if this is normal but when playing the game, Java uses 100% of GPU and sometimes CPU also goes to 100%
This is complete rubbish.
In a post I can't describe in any meaningful way how Java Heap memory is managed, but even with a modern Garbage Collection like G1GC used by Minecraft (I use Shenandoah, which is slightly better), you're still going to need more CPU if you add more Heap Memory. More CPU means less FPS, plain.
The difference by adding Heap is if your software is using more heap that you have allocated as a maximum, in this case the GC algorithm is running all the time to try to free memory and horrible things happen (like dropping well below 1FPS!), obviously in this case you need to raise your maximum heap but this almost never happens in vanilla (one exception is if you're using commands or megafarms which generates lots and lots of entities, like XP orbs or drops), but it happens all the time with modern modpacks with hundred of mods.
Try connecting your laptop to an external display and set the display to "second screen only". Optimus may be responsible for this FPS bottleneck.