• v0.5.0 68f090061f

    Release v0.5.0 - Stable
    ci / image (42, public) (push) Successful in 28s
    publish / maven (push) Failing after 2m6s
    Stable

    Overlord released this 2026-10-07 07:24:32 +00:00 | 17 commits to master since this release

    Sixteen performance patches for 42.21, plus container defaults:
    
      Startup
        ZomboidFileSystem.init walks the media folders once instead of two stat calls per file (2.27 → 1.38 s)
        zombie voronoi without boxed stream sorting                                            (IsoMetaGrid.CreateStep2 850 → 38 ms, startup allocation 15.7 → 7.0 GB)
        startup and periodic backups as one parallel zip pass                                  (startup backup 16.8 → 7.5 s, 2.9 → 1.0 GB written)
        experimental: more asset loader threads, park instead of spin                          (asset loading 4.8 → 3.2 s on 8 CPUs)
    
      World generation and chunks
        tile placement rules compiled once instead of per check                                (allocation -65 %, LoadChunk thread CPU -40 %)
        cell integration capped at 40 ms per frame, at least one cell                          (fewer frames over 150 ms)
        per-thread BitHeader pools for chunk serialization, no directory checks per chunk save
    
      Saves and shutdown
        Roles.save in one SQLite transaction                                                   (1.28 s → 10 ms)
        five fixed Thread.sleep waits end as soon as the work is done                          (shutdown 8.1 → 5.3 s)
        experimental: the shutdown sleep only waits while clients are connected, at most 5 s   (→ 0.3 s without clients)
    
      -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
      Container
        UPNP:                                       UPnP discovery costs 12 s per start and cannot map ports from a container (false recommended)
        JVM_MAX_HEAP:                               defaults to 75 % of the container memory limit (8g without); JVM_MIN_HEAP, JVM_UNCOMMIT_DELAY (60 s)
        ZF_EXPERIMENTAL_PERFORMANCE  (default off): for changes that alter timing or resource use
        JVM_EXPERIMENTAL_PERFORMANCE (default off): compact object headers and transparent huge pages for the heap
    
    Game results are unchanged: the patched code computes what vanilla computes, checked against vanilla
    for the tile-rule matches, voronoi values, media file list, backup contents and a world save/reload.
    The cell budget and the experimental options change only when work happens.
    
    Benchmark: 5 runs per build, interleaved, each on a fresh world from the same seed (same terrain),
    8 fake clients exploring around Muldraugh at 60 km/h for 30 minutes (first 10 minutes warm-up,
    last 20 measured), Ryzen 7 7800X3D (8 cores), 8 GB heap, UPnP=false, BackupsOnStart=false, STEAM=0.
    
    vanilla      = this image with every patch disabled (jar identical to Steam's);
    ZomboidForge = all patches with ZF_EXPERIMENTAL_PERFORMANCE=true, without JVM_EXPERIMENTAL_PERFORMANCE.
    
    Mean of 5 runs vanilla ZomboidForge change
    Startup 17.8 s 13.0 s -27 %
    Startup CPU 60.8 s 47.8 s -21 %
    Shutdown (shutdown hook) 7.9 s 0.4 s -95 %
    Process CPU, 20 min play 1,232 s 901 s -27 %
    Allocation, 20 min play 1,302 GB 392 GB -70 %
    GC cycles, 20 min play 507 111 -78 %
    Live heap after GC, max 6.7 GB 5.5 GB -17 %
    Chunk load (IsoChunk.LoadChunk) 1.15 ms 0.63 ms -45 %
    Main-thread work per cell 24.6 ms 22.5 ms -8 %
    Frames over 150 ms 12.8 2.6 -80 %
    Frame work p99 / max 90 / 265 ms 84 / 174 ms
    Downloads