Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

State Icons has high GC load while shift is held

Open GoogleFrog opened this issue 7 years ago • 2 comments

image

GoogleFrog avatar Mar 09 '19 12:03 GoogleFrog

Calling Spring.GetUnitStates for every unit every 30 frames appears to be the issue.

GoogleFrog avatar Mar 09 '19 12:03 GoogleFrog

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.

moss-orbit-9f339e avatar Oct 23 '26 18:10 moss-orbit-9f339e