Zero-K
Zero-K copied to clipboard
State Icons has high GC load while shift is held

Calling Spring.GetUnitStates for every unit every 30 frames appears to be the issue.
This issue reports high GC load from state icon updates. f303978574 replaces the per-unit state table with scalar returns on newer engines. Current master keeps that read and draws the icons; total GC time is unmeasured. No test was run; this is from the code and history. This looks resolved; it can be closed if the reporter agrees.
Found with help from OpenAI Codex and Claude Code.