Run background threads below normal priority (#30) #35

Merged
nessar merged 1 commits from perf/30-background-low-priority into main 2026-11-17 19:42:07 +01:00
1 Commits
Author SHA1 Message Date
nessarandClaude Opus 5.5 dc2bcd0acd Run background threads below normal priority (#30)
CI / core (pull_request) Successful in 1m8s
CI / core (push) Successful in 33s
Every thread the app starts goes through spawn_guarded: the champion
catalog and portraits, the game client follower and the refresh button.
Each now lowers itself to THREAD_PRIORITY_BELOW_NORMAL before running,
so the game and the UI keep the CPU they need (rule #1, budget 5).
Two kernel32 calls declared in place, no new dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 19:41:53 +01:00