brucethemoose / Minecraft-Performance-Flags-Benchmarks

Sane, Benchmarked Java Flags and Tweaks for Minecraft
MIT License
1.34k stars 29 forks source link

Azul JDK on windows #19

Closed HyperSoop closed 1 year ago

HyperSoop commented 1 year ago

After a big/medium story I discovered that the launcher TL Legacy auto-downloads the Azul JDK which is stupid fast, way faster than GraalVM EE. It is mentioned in this guide:

Azul's Prime OpenJDK is very fast since it hooks into llvm, but its currently incompatible with most mods and is linux-only. Get it from here: https://docs.azul.com/prime/prime-quick-start-tar

But the thing is, I'm on windows and this mysterious Azul JDK bundled by TLL runs for me (even after routing Prism Lancher to use it). And it is fully compatible with Simply Optimized (currently only the latest 1.18.x release tested). There clearly is something going on, Azul can be used on windows.

HyperSoop commented 1 year ago

After some testing, i can say: azul is great. Zulu gives a bit more FPS than Graal EE does, and conserves a lot on memory. If you can do your own testing and tuning, we could get a nice additional bit of performance! and the joy of running MC 1.19.3 on 220mb ram.

brucethemoose commented 1 year ago

Its important to note there are basically 2 Azul JDKs: the "regular" Zulu one which is just OpenJDK like Adoptium, and "Prime" which is the special proprietary linux-only one: https://www.azul.com/downloads/?package=jdk

Regular OpenJDK does indeed work better than GraalVM EE on many machines, espcially with light modpacks, and it uses less RAM.

In my testing, I saw no evidence that Zulu was any different than Adoptium, but I'd love to be proven wrong if someone wants to run the benchmark script.

HyperSoop commented 1 year ago

Wait, so graal EE is not much better in most cases? You should probably mention that somewhere

HyperSoop commented 1 year ago

I think i'm stupid

brucethemoose commented 1 year ago

Wait, so graal EE is not much better in most cases? You should probably mention that somewhere

It seems to depend on the environment. Graal uses more RAM and background CPU, so it seems to shine on higher end PCs, but there are also reports of it helping low end computers.

It also seems to help content-heavy mod loadouts more.

This is all just my subjective/informal impression though, I am hesitant to add much to the guide without some testing at least.

brucethemoose commented 1 year ago

Oh also I accidentally mashed the reopen key on mobile, but feel free to reopen if you wish.