Live data from Hacker News

Native Minecraft servers with GraalVM Native Image

github.com

1–10 of 92 posts

Re: Native Minecraft servers with GraalVM Native Image

#3
post #2

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.

Hit 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.

Re: Native Minecraft servers with GraalVM Native Image

#4
post #2

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.

I 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.

Re: Native Minecraft servers with GraalVM Native Image

#5
post #2

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.

> 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.

Re: Native Minecraft servers with GraalVM Native Image

#6
"As such, it is supposed to require fewer CPU and memory resources, provide better startup times, and be easier and cheaper to deploy."

So we don't even know if it actually makes things faster? Startup are a none issue, CPU / memory is but you need proof for that.

Graal does not support ZGC or Shenandoah so it's hard to say if the G1 version from Graal is up to speed.

Re: Native Minecraft servers with GraalVM Native Image

#7
post #2

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.

Minecraft Bedrock edition runs better. It has feature parity but is not compatible with java server, and requires a new purchase IIRC.

Re: Native Minecraft servers with GraalVM Native Image

#8
post #2

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.

Check 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

Re: Native Minecraft servers with GraalVM Native Image

#9
post #2

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.

There 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 packages several of these performance mods together (see https://github.com/Fabulously-Optimized/fabulously-optimized... for the list).

Re: Native Minecraft servers with GraalVM Native Image

#10
post #6

"As such, it is supposed to require fewer CPU and memory resources, provide better startup times, and be easier and cheaper to deploy." So we don't even know if it actually makes things faster? Startup are a none issue, CPU / memory is but you need proof for that. Graal does not support ZGC or Shenandoah so it's hard to say if the G1 version from Graal is up to speed.

>Startup are a none issue

Yes it is. Developing any short term job -- that runs multiple seconds and goes away -- like lambda or k8s jobs with Java is meaningless for exactly this reason. The startup time is longer than the run time.

Post reply on HN