Skip to content

CitiesAI 0.7.4

Choose a tag to compare

@XharvaK XharvaK released this 07 Jul 16:48
· 15 commits to master since this release

Performance

  • CS2 Data Export — major FPS improvements:
    • Transit access-gap observer no longer scans every PathOwner entity every frame; citizens-only query, 6-frame throttle (configurable), cached entity queries, and stop-list refresh only when stop count changes.
    • Export cycle memoization deduplicates population/workforce scans (7× → 1×), workplace scans (5× → 1×), household economy/pressure passes (2× → 1×), and GetSortedLines (2× → 1×) per 5s snapshot.
    • Snapshot retention runs every 10th export instead of every export; optional CS2DATAEXPORT_PROFILE=1 logs per-phase timings to CS2DataExport.log.

Fixes

  • Dashboard — when CS2 Data Export official city statistics fail, fill treasury/income/health/wellbeing/crime from recent historian snapshots instead of showing n/a.
  • CS2 Data Export (vendor) — harden official city statistics probe against runtime NullReferenceException.
  • Doctor — warn when official city statistics export is degraded.

Estimated Impact

  • ~75–85% less mod CPU usage during gameplay (sustained observer cost down ~90%+; export spikes down ~50–60%).
  • Workaround env vars: CS2DATAEXPORT_TRANSIT_CAPTURE=off, CS2DATAEXPORT_TRANSIT_OBSERVE_EVERY_N_FRAMES, CS2DATAEXPORT_TRANSIT_CAPTURE_COOLDOWN_MINUTES.

Install

Download CitiesAI-Setup-0.7.4.exe below or use updater in settings if your client haven't updated automatically.
Shut down CS2 before installing so the CS2 Data Export mod can update.