Founding Wave75% off lifetimeCode first5
← Back to Knowledge Base
BUILD 42 PERFORMANCE

Reducing Lag and Latency (Build 42)

Optimize your Project Zomboid server for smooth gameplay in Build 42

Understanding Lag in Build 42

Project Zomboid Build 42 introduces significant changes to the game engine, including improved rendering, new zombie AI, and enhanced multiplayer features. While these improvements enhance gameplay, they can also introduce new performance challenges.

Types of Lag in Build 42

  • Server Lag: Affects all players (FPS drops, zombie teleporting)
  • Network Lag: High ping, desync, rubber-banding
  • Client Lag: Individual player performance issues

Build 42 Specific Optimizations

New Rendering Engine Settings

Build 42 introduces a new rendering engine with additional configuration options.

Recommended settings:

DiscordRichPresence = falsePZRenderFramework = 1RenderPrecalculation = falseDisableSpecialEffects = true

These settings can be added to your server's launch parameters or in the server configuration.

Enhanced Zombie Management

Build 42's improved zombie AI requires more careful configuration to maintain performance.

Recommended settings:

ZombieConfig.PopulationMultiplier = 0.5ZombieConfig.RespawnHours = 96ZombieConfig.RespawnUnseenHours = 16ZombieConfig.RedistributeHours = 24

The new zombie AI is more CPU-intensive, so reducing population density can significantly improve performance.

Memory Optimization

Build 42 has higher memory requirements due to improved textures and world simulation.

Recommended JVM arguments:

-Xms6G -Xmx6G-XX:+UseG1GC -XX:G1HeapRegionSize=16M-XX:+ParallelRefProcEnabled-XX:MaxGCPauseMillis=200

Adjust -Xms and -Xmx values based on your server plan. For Build 42, we recommend at least 6GB for servers with more than 8 players.

World Simulation Settings

Build 42 includes enhanced world simulation that can be tuned for better performance.

Recommended settings:

Map.AllowWorldSimulation = trueMap.WorldSimulationRange = 3Map.WorldSimulationRangeUnvisited = 1Map.WorldSimulationRangeVisited = 2

These settings control how much of the world is actively simulated, which directly impacts server performance.

Network Optimization for Build 42

Packet Management

Fine-tuning network packet settings can significantly reduce latency and desync issues.

Connection Settings

UDPPort = 16261MaxPlayers = 16PingFrequency = 10

Basic connection parameters

Advanced Packet Settings

PacketTimeoutMultiplier = 4ConstructionPrevention = truePlayerUpdateRate = 32

Helps with high-latency connections

Player Synchronization

Build 42 includes improved player synchronization that can be optimized for better performance.

Recommended settings:

  • PlayerSafehouse = true - Reduces sync issues in safehouses
  • SafehouseAllowRespawn = true - Improves respawn handling
  • DisableRadioStaff = true - Reduces network traffic
  • VoiceEnable = false - Disable in-game voice for better performance

Client-Side Recommendations

Share these settings with your players to improve their experience:

Player settings for Build 42:

  • Reduce Zoom Level (Performance Options)
  • Disable Lighting Quality (set to Low)
  • Disable Real-time Shadows
  • Set Texture Compression to High
  • Disable Blood Decals
  • Reduce View Distance (30% recommended)

Advanced Lag Reduction Techniques for Build 42

For servers experiencing persistent lag issues, consider these more aggressive optimizations:

Limit Active Cells: Reduce the number of active cells by setting Map.ActiveCellLimit = 128 (default is 256).
Disable Weather Effects: Set EnableSnowOnGround = false and EnablePrecipitation = false.
Limit Vehicle Simulation: Set VehicleSimulationDistance = 60 (default is 100).
Disable Unnecessary Features: Turn off features like AllowDestructionBySledgehammer = false and AllowNonAggressive = false.
Limit Zombie Pathfinding: Set ZombieConfig.PathFindMaxNodes = 1000 (default is 2000).

Server Maintenance for Build 42

Regular Restarts

Schedule automatic restarts every 8-12 hours to clear memory leaks and reset server state.

World Item Cleanup

Use admin commands to periodically clean up excess items and vehicles in the world.

Log Rotation

Delete old log files regularly to prevent disk space issues.

Mod Management

Regularly update mods and remove unused ones to prevent conflicts and performance issues.

Build 41 vs Build 42 Performance

Build 42 introduces significant engine changes that affect performance differently than Build 41:

FeatureBuild 41Build 42Optimization Focus
Rendering EngineLegacyNew PZ FrameworkDisable special effects
Zombie AIBasicEnhancedReduce population
Memory UsageLowerHigherIncrease allocation
Network ProtocolBasicImprovedTune packet settings
World SimulationLimitedExpandedLimit active cells

Still Experiencing Lag?

If you've tried all the optimizations above and still experience lag issues, our support team is ready to help with Build 42-specific troubleshooting!

Related Articles