mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-24 18:18:17 -06:00
Every 10 seconds the UI thread re-read the system's memory for the cache budgets, and on Windows that starts PowerShell (`Get-CimInstance Win32_OperatingSystem`) and waits for it: about a second, sometimes two, during which the whole app froze. The reading now runs on a background thread (`sysinfo::MemoryWatch`); `Session::memory_tick` takes the last reading and starts the next one, never waiting. Console programs started for it no longer open a console window (`CREATE_NO_WINDOW`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>