Menu
 

Modular Expansion 2.0: Multi-threaded AI & Performance - DayZ Wiki

Modular Expansion 2.0 Optimization

The late 2025 release of **DayZ Expansion 2.0** introduced a radical shift in how the most popular DayZ mod operates. By moving to a Modular Core, server owners can now selectively load and optimize AI, Vehicles, and Map Additions as independent processes, significantly improving overall Server TPS.

⚙️ What is Modularity?

  • Legacy: Loading 'Expansion' required loading every script for helicopters, boats, and AI even if you only wanted base building.
  • Modern (2.0): You only load the modules you need. Each module has been refactored for the 2026 performance meta.
  • Multi-threading: AI pathfinding for Expansion AI can now be "off-loaded" to secondary CPU threads using the new `Expansion.WorkerThreads` setting.

1. Configuring the AI Worker Threads

In 2026, high-pop servers use AI-intensive "Survivor Patrols." To prevent these from crippling your main game loop, you must enable worker threads in ExpansionMod/Settings/AISettings.json.

{
    "WorkerThreads": 4,
    "PathfindingUpdateFrequency": 0.5,
    "MaxGlobalAgents": 100
}

Setting WorkerThreads to match your virtual CPU count (e.g., 4 or 8) allows the server to calculate zombie and survivor movement in the background.

2. Selective Module Loading

Audit your -mod= list. In Expansion 2.0, the mod is split into several distinct folders. Only include the essential ones to minimize memory overhead.

🕊️ Expansion.Core

The mandatory foundation. Includes the base framework and performance patches. Always load this first.

🧟 Expansion.AI

The most resource-heavy module. In 2026, only load this if you are running active NPC factions or custom quest systems.

3. Networking Meta: The 'Map-Patch' Era

Expansion 2.0 includes a new type of map-delivery system called **Client-Side Caching**. By enabling this, you reduce the data your server has to send to players when they enter a complex custom area (like a modded trader or city).

  • Setting: EnableClientCaching: 1 in MapSettings.json.
  • Impact: Reduces "Desync Bubbles" when many players converge on a single modded location.

Host Optimization for 2026

Setting Impact Recommended Value
Memory LimitPrevents OOM crashes32GB (for full Expansion 2.0)
Disk I/OSpawns entities fasterNVMe (Required)
CPU AffinityZero-jitterBind Main Thread to Core 1

Can I upgrade from Expansion 1.0 to 2.0?

Yes, but you **must** wipe your database. The item classes and AI logic have changed significantly, and old saves will cause immediate server-side null-pointer exceptions.

Is AI still the laggiest part of DayZ?

With Expansion 2.0's multi-threading, it's actually **Vehicle Physics** that is now the primary bottleneck. If your TPS is low, try reducing the number of high-speed vehicles in your types.xml.

Do I need an SSD?

In 2026, an **NVMe** is mandatory for DayZ Expansion. Standard SATA SSDs cannot handle the simultaneous read/write requests of 50+ players and thousands of AI agents.

Next Steps

Expansion-Optimized Nodes: Supercraft’s DayZ servers are pre-configured for Expansion 2.0. We automatically tune your worker threads based on your plan level, ensuring you get maximum TPS out of every modded survivor.

Top