To everyone who seeks for higher fps in Minecraft Java. Explanation in the comments below.

๐ŸŽ™๏ธ Qamelion ยท 8 points ยท Posted at 18:37:21 on February 17, 2020 ยท (Permalink)


Saved comment

Bingbong34 ยท 2 points ยท Posted at 18:38:35 on February 17, 2020 ยท (Permalink)

Wheres my explanation

boluserectus ยท 1 points ยท Posted at 18:39:24 on February 17, 2020 ยท (Permalink)

Probably he's still typing..

๐ŸŽ™๏ธ Qamelion ยท 1 points ยท Posted at 18:45:16 on February 17, 2020 ยท (Permalink)

Yes, I did. Sorry about that. :)

boluserectus ยท 2 points ยท Posted at 18:48:48 on February 17, 2020 ยท (Permalink)

Obvious.. No worries mate.

Creeper4wwMann ยท 1 points ยท Posted at 20:51:54 on February 17, 2020 ยท (Permalink)

F to all those poor people who cant watch this comment because they have too laggy screens

๐ŸŽ™๏ธ Qamelion ยท 1 points ยท Posted at 18:39:12 on February 17, 2020 ยท (Permalink)*

I started searching for a way to get more fps in vanilla minecraft since the pre-release 1 of version 1.15 came out.
I learned a ton about garbage collection and was able to double my fps at a render distance of 16 with these two tricks:

Use these JVM arguments:
-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:SurvivorRatio=5 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:-DisableExplicitGC -XX:+UseStringDeduplication

Use the following JDK:
https://www.azul.com/downloads/zulu-community/?&version=java-15-ea&architecture=x86-64-bit&package=jdk

If you have any questions, feel free to write me a pm.

Bucky2503 ยท 0 points ยท Posted at 18:42:08 on February 17, 2020 ยท (Permalink)

If you have 64-bit OS you can also increase FPS with -Xmx4G on top of all this

๐ŸŽ™๏ธ Qamelion ยท 1 points ยท Posted at 18:47:08 on February 17, 2020 ยท (Permalink)

No you can't.
-Xmx4G is only there to increase the heap size.
Bigger heap = more garbage collection.
2G are fine for vanilla minecraft.
Also: never set a fixed size for the JVM with -Xms2G or something.