[Build 42] Ultimate Performance Boost: GraalVM 25 & Generational ZGC (english version)
how to
This guide optimizes the Project Zomboid engine for maximum FPS and eliminates micro-stutters, even with massive zombie hordes and hundreds of mods.
Use at your own risk: These changes deeply alter the game's runtime environment. Neither I nor "The Indie Stone" are responsible for broken save games or instability.
Backup: Always create a backup of your jre64 folder and your .json file before making any changes!
Updates: Official Project Zomboid updates via Steam will often reset the ProjectZomboid64.json file and the jre64 folder. You will need to repeat these steps after an update.
Multiplayer: These optimizations are client-side and work in multiplayer. If you are hosting a dedicated server, these parameters must be set separately in the server startup files.
- [] Download GraalVM Community (Java 25) for your system (e.g., Windows x64).Download link: https://www.graalvm.org/downloads/[] Go to your game folder:
- [] -Xms16g -Xmx16g: Allocates a fixed 16 GB of RAM to the game (ideal for massive mod builds). (See RAM configurations in the next section!)[] -XX:+UseJVMCICompiler: Activates the highly optimized Graal compiler (the core of the FPS boost).[] -XX:+UseZGC -XX:+ZGenerational: The most advanced Garbage Collector. It ensures that RAM cleanups take under 1 millisecond – no more stuttering when loading chunks or zombies![] -XX:+AlwaysPreTouch: Allocates the RAM immediately on startup, preventing loading stutters while playing.
Look at the first few lines. It should look something like this:
Tip: Search the log (console.txt) for JVMCI. If you see
Q: My game won't start after applying the changes!
ADouble-check the ProjectZomboid64.json. A missing comma or misplaced quotation mark will cause the game to crash instantly. Use an online JSON validator if you are unsure about the formatting.
Q: I see "Oracle Corporation" instead of "GraalVM" in the log.
A: That is completely normal. GraalVM is an Oracle product. The crucial line isQ: What happens when the game updates?
ASteam will likely overwrite your ProjectZomboid64.json. Simply copy and paste your optimized vmArgs back in. The jre64 folder usually remains intact, but you should double-check it just in case.
Q: My PC runs hotter than before.
AGraalVM optimizes more aggressively and utilizes your CPU performance much more efficiently. This is a sign that the engine is actually working harder to keep your FPS stable. Ensure your system has adequate cooling!
This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.