CitiesAI 0.7.4
Performance
- CS2 Data Export — major FPS improvements:
- Transit access-gap observer no longer scans every
PathOwnerentity 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=1logs per-phase timings toCS2DataExport.log.
- Transit access-gap observer no longer scans every
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.