4 ms·
Can the same trick be used with the java client? My son runs minetest on the raspberry pi 400 as minecraft is to slow. I'll do everything for a bit more fps.
by fsiefken 4y ago
Can the same trick be used with the java client? My son runs minetest on the raspberry pi 400 as minecraft is to slow. I'll do everything for a bit more fps.
- sdwvit 4y agoHit Shift + F3 to see a frame time breakdown, then you can determine if it is slow graphics or cpu. If it is CPU, maybe graal helps, but it's hard to tell upfront. Also check out some mods dedicated to improving performance like Sodium.
- LtdJorge 4y agoIt's always CPU with Minecraft. 1 thread can't do much more.
- fniephaus 4y agoI don't think the student looked into that at all, but I guess it depends on what the Java client uses for drawing. GraalVM Native Image currently doesn't support AWT on Linux/JDK17+, but we are working on fixing that soon.
- cesarb 4y ago> it depends on what the Java client uses for drawing AFAIK, the Java client uses LWJGL, which is a native library.
- fniephaus 4y agoThanks for the info! Seems like it's worth trying to compile the Java client with GraalVM Native Image then, given that this exists: https://github.com/chirontt/lwjgl3-helloworld-native https://github.com/chirontt/lwjgl3-helloworld-native
- fniephaus 4y agoApparently, someone has managed to compile the Minecraft client to native: https://medium.com/@kb1000/what-youve-done-with-the-server-i-ve-done-with-the-client-a51bbdde42fc https://medium.com/@kb1000/what-youve-done-with-the-server-i...
- chrisseaton 4y ago> I'll do everything for a bit more fps. Native compilation usually makes things a little slower, not faster. Using the closed-source Enterprise version, and using PGO gets it back to around the same speed as the VM version I believe currently.
- the_gipsy 4y agoMinecraft Bedrock edition runs better. It has feature parity but is not compatible with java server, and requires a new purchase IIRC.
- cesarb 4y ago> Minecraft Bedrock edition runs better. It has feature parity but is not compatible with java server, and requires a new purchase IIRC. That's no longer the case. If you have one, you can "purchase" the other for free. See https://www.minecraft.net/en-us/article/java---bedrock-edition-pc-out-june-7 https://www.minecraft.net/en-us/article/java---bedrock-editi... and https://help.minecraft.net/hc/en-us/articles/6657208607501 https://help.minecraft.net/hc/en-us/articles/6657208607501 for details. Also, there are mods for the Java server which allow both Java and Bedrock clients to connect to the same server and play together. I don't know the details, but I have played in a server which used these mods.
- dvaun 4y ago> Also, there are mods for the Java server which allows both Java and Bedrock clients to connect to the same server and play together. This is correct. I am running a vanilla SMP for my son, and he plays primarily on the switch. I use a Java server running Fabric and Geyser/Floodgate in order to allow his switch to connect to the server. Everything runs smoothly, so far.
- Asraelite 4y ago> Also, there are mods for the Java server which allow both Java and Bedrock clients to connect to the same server and play together. How exactly does that work? Afaik there are quite a few behavioral differences between the two, especially for technical things like redstone and pistons.
- cesarb 4y agoMost of these behavioral differences are in the server. So what happens, is that it behaves as if you were playing the Java edition, even when using a Bedrock client.
- wingmanjd 4y agoCheck out the sodium mod [1], if you haven't already. I've had great success eeking out a few more precious frames with it on older hardware. IIRC, it works on both x86 and ARM processors. [1] https://github.com/CaffeineMC/sodium-fabric https://github.com/CaffeineMC/sodium-fabric
- cesarb 4y agoThere are mods which heavily optimize the java client performance, these would have a greater effect than just ahead-of-time compilation. For instance, the modpack at https://github.com/Fabulously-Optimized/fabulously-optimized https://github.com/Fabulously-Optimized/fabulously-optimized packages several of these performance mods together (see https://github.com/Fabulously-Optimized/fabulously-optimized/blob/main/INCLUDED-MODS.md https://github.com/Fabulously-Optimized/fabulously-optimized... for the list).