Project Zomboid

Project Zomboid

211 ratings
Commandline FPS+++ B41/B42
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
94.007 KB
1 Apr @ 5:46pm
1 Apr @ 5:55pm
2 Change Notes ( view )

Subscribe to download
Commandline FPS+++ B41/B42

Description
This mod contains a text file (commandline.txt) that executes command line parameters to improve performance and optimize the experience in Project Zomboid by 20% to 40%.This mod requiers to be installed manually to work




¿How to install the mod manually?:

1. Subscribe to the mod on Steam Workshop.

2. Find the mod folder in the following path:
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\3456462930\mods\Commandline FPS+++\media\common\

3. Copy the commandline.txt file.

4. Paste it into the root folder of Project Zomboid:
C:\Program Files (x86)\Steam\steamapps\common\ProjectZomboid\

5. Launch the game from Steam and enjoy the optimization.


For LYNUX:

Users of UNIX based operating systems may benefit from the optimizations this mod enables through the native Project Zomboid command-line as well.
When you download this mod for a Linux distro the commandline.txt file will be located in $HOME/.steam/steam/steamapps/workshop/content/108600/3456462930/mods/Commandline FPS+++/media/common

Place the commandline.txt file in the root directory of Project Zomboid located at $HOME/.steam/steam/steamapps/common/ProjectZomboid/projectzomboid/ to instantly optimize FPS overhead, draw time and RAM usage

Special thanks to the modder @khalkhedra who shared the installation method for Linux users!

--Important:

The mod does not activate automatically from the in-game mod menu. It must be installed manually, Once you have completed the manual installation, it will not be necessary to activate it from the game for it to work.

For the best performance, it is recommended to play in fullscreen mode.


It works on all builds.

if u like this mod, u can rate this mod! ⭐⭐⭐⭐⭐

or if u want to support me u can go there!
https://ko-fi.com/danonimo7

por cierto, tengo un video donde enseño algunos ajustes que le puedes colocar a este documento, esta en español en youtube!



For Build 41, all the commands work perfectly! But for Build 42, some of them are still disabled. So I kindly ask for your patience if you download the mod for Build 42, as not all commands will work yet. Until the stable version of Build 42 is released, there isn’t much I can modify, so the optimization will be lighter for now.
FAQ.

-------------How does the mod work?-------------

The mod works through command lines, which are present in the commandline.txt text file.
These command lines function in the same way as launch parameters when running the game, similar to how the -debug command works.

-------------What does each command in the file do?-------------
-noprecache: Prevents the preloading (precache) of certain files, such as models, sounds, or textures, before they are needed in the game. This helps improve performance and speeds up the initial loading time.

-frameLimit 0: Disables the FPS limit, allowing the GPU to render frames without restriction. This improves smoothness, especially on high-refresh-rate monitors (no negative effect on smaller monitors).

-nojoy: Disables joystick or gamepad compatibility, preventing the game from loading controller-related libraries. This helps reduce RAM usage and loading times, improving performance on low-end systems.

-XX:+UseZGC: A low-latency garbage collector designed to improve performance and stability in memory-intensive applications. It reduces stuttering and FPS drops by managing memory more efficiently.

-XX:+UnlockExperimentalVMOptions: Enables experimental Java Virtual Machine (JVM) options, allowing the use of commands like -XX:+UseZGC mentioned earlier. This can optimize memory usage and improve FPS thanks to advanced default optimization settings.

-XX:+UseLargePages: Enables the use of large memory pages to improve RAM management and reduce system overhead. This enhances RAM performance, reduces fragmentation and latency, and minimizes page table accesses, which can improve stability by processing larger pages (high impact if you have at least 16GB RAM, moderate impact with less).

-XX:MaxGCPauseMillis=5: Limits the maximum garbage collection (GC) pause time to 5 milliseconds, optimizing game smoothness by reducing pauses caused by garbage collection. It forces the GC to work in fast cycles instead of long cycles, reducing FPS drops and micro-stutters caused by memory management.

-------------What is the purpose of these commands?-------------
These commands focus on increasing and stabilizing FPS, as well as significantly reducing micro-stutters and lag caused by lower-end systems. However, even if you use a high-end PC, the benefits will still be substantial.
On powerful systems, performance gains are not just 20%-40% but 30%-50%!

-------------Does the mod work in multiplayer?-------------
Yes, but it cannot be installed on the server. To benefit from this mod, each player on the server must install the mod manually, as it works client-side.

-------------Does it work on Build 42?-------------
Yes! You just need to install the mod manually, and you’ll enjoy the optimization regardless of whether you're playing on older builds or future updates!

-------------How do I uninstall the mod?-------------
To completely uninstall the mod, go to the game’s root folder, find the commandline.txt file, and delete it.

-------------Is it incompatible with any mods?-------------
No! This mod is compatible with all mods!
You won’t have any issues or incompatibilities with other mods!

-------------What do I do if I can't find the 108600 file?-------------
For people who cant find 108600 folder, it will be stored on the same drive as your game is downloaded to.

Workshop ID: 3456462930
Mod ID: Clfps
151 Comments
Danonimo7  [author] 12 hours ago 
thank you for using my mod!, ill apriciet!:cherrypie:
ta2cwr 12 hours ago 
just installed and tried it on arch linux. Worked perfectly and made my pz experince much better. Thank you so much for making pz better. :praisesun:
Danonimo7  [author] 30 Jul @ 4:28am 
yes its compatible whit those mods and also works in b42!:spiffo:
Ruru 30 Jul @ 4:15am 
Is this compatible with mod called "everything is optimized" and "shaderz/vivid"?
Ruru 30 Jul @ 4:14am 
Wait, so this works for B42?
Danonimo7  [author] 21 Jul @ 8:19pm 
yes!, u can place these parameters in the parameters of the launch, but i think its more easy put the commandline.txt in the root folder hehe
Cachorro Chupetao 21 Jul @ 6:49pm 
shouldn't this be the same as placing these parameters in the steam pre-launch parameters?
Weiser Wolf von Yoitsu 19 Jul @ 8:05pm 
Thank you for your detailed reply!
Danonimo7  [author] 19 Jul @ 7:49am 
Hello!.
To assign a command line that improves RAM performance in the game, you can modify two files in the game's root folder. In the file named projectzomboid64.bat, edit the parameter that appears like this:
-XX:+UseZGC -Xmx8192m
(where the number 8192 should be replaced with the amount of RAM in megabytes you want to allocate to the game, preferably 1/4 of your total RAM).

The other file is projectzomboid32.bat (in case you're using a 32-bit system, which is unlikely). In this file, modify the following parameter:
-Xms768m -Xmx1200m,
where -Xms is the minimum amount of RAM and -Xmx is the maximum amount of RAM you want to assign.

With this, Project Zomboid would be optimized in terms of RAM usage. In the case of my mod commandline.txt, you can add these parameters as well, but they will work better if you edit the original files directly.
Weiser Wolf von Yoitsu 18 Jul @ 3:59pm 
Hello! I have 64G ram pc, I wonder if there is any code that can have the same effect with running this game in ramdisk.