10 Commits

Author SHA1 Message Date
PrimeBuild-pc 88bb2ec1a9 fix: Game Boost no longer ignores a game that reuses a just-rejected PID for 30 s
The memory of a rejected foreground process was keyed by PID only; it now also compares the
process start time. Found by the independent Codex review.
2026-10-22 10:54:37 +02:00
PrimeBuild-pc 0c33eee9de refactor: small cleanups from the final review
Game Boost StopAsync and Dispose reuse SyncTimer for the timer; the always-true
UpdateDownloadResult.ChecksumVerified and an unused using are gone. No behavior change.
2026-10-22 10:54:37 +02:00
PrimeBuild-pc 2af91100e5 fix: a Game Boost tick queued before stop or dispose no longer starts a session
Timer.Dispose does not wait for a callback already on the thread pool; such a tick could apply
changes after the shutdown restore and leave the game handle open.
2026-10-22 10:54:37 +02:00
PrimeBuild-pc 38377dd8ac fix: Game Boost keeps Above Normal on the game after a settings change during a session
ReapplyAsync put back the session's old process model, which still said AboveNormal after the
restore had set the game back to Normal, so the priority was not applied again.
2026-10-22 10:54:37 +02:00
PrimeBuild-pc ced4f769f6 fix: hold the game with SYNCHRONIZE|QUERY_LIMITED only
Process.EnableRaisingEvents opens the game with PROCESS_ALL_ACCESS and the
session kept that handle for the whole game: exactly the kind of outside
handle anti-cheats scan for, and a protected (PPL) game refused it and fell
back to polling.

The game is now opened with only SYNCHRONIZE and
PROCESS_QUERY_LIMITED_INFORMATION; start time and CPU time come from
GetProcessTimes on that handle, and the exit wait is a thread-pool
registration on it, still checked with one zero wait first so a handle
stripped of SYNCHRONIZE falls back to polling. +1 native test (a protected
process can be held).
2026-10-22 10:54:37 +02:00
PrimeBuild-pc 604642598f perf: Game Boost holds the game open and rescans only listed names
During a session the game was looked up twice every 3 s (identity + CPU
time, each a GetProcessById and the identity a full process snapshot for
SessionId), and every 15 s a model was built for every process on the
machine to find a few listed background names.

- The game is held open for the session (Process + Exited): its exit ends
  the session at once, under the same lock as the tick; CPU time for the
  load sampling is read from the same handle. The identity is re-checked
  through the held handle, which also pins the PID.
- The handle is verified with one wait before the exit wait is registered,
  so a handle without SYNCHRONIZE (anti-cheat) falls into the polling
  fallback instead of failing on the runtime's wait thread. A denied or
  protected game keeps the previous polling.
- The rescan filters the GetProcesses snapshot by listed name before any
  model is built; exact paths are still checked afterwards.
- Session id read with ProcessIdToSessionId instead of Process.SessionId
  (a full snapshot per listed background process every 15 s).

Ownership, journal and restore unchanged. +8 tests (903/903).
2026-10-22 10:54:37 +02:00
PrimeBuild-pc ac84382841 security: follow-ups from the validation pass
- The launch task is re-registered on every elevated start again (now in the
  background), so a changed definition or another admin never keeps a stale one.
- Admin-only folders are owned by Administrators when elevated, so the user
  cannot rewrite their DACL with UAC off or a non-default owner policy.
- The update provider trusts only folders it created itself.
- Game Boost does not remember a foreground process as not-a-game while its
  path is still unreadable.
2026-10-22 10:54:37 +02:00
PrimeBuild-pc 6506d4a65f perf: Game Boost idles when off and power plan switches spawn fewer powercfg
- The Game Boost timer runs only while Game Boost is on (off by default);
  turning it off still restores everything through ReapplyAsync.
- A foreground process just rejected as not-a-game is not rebuilt into a full
  process model every 3 s; it is looked at again after 30 s or on a settings
  change.
- Switching power plans reads one /list for the previous and target plans and
  reuses it after /setactive: 3 powercfg.exe starts instead of 5 (2 when
  duplicate prevention is off).
2026-10-22 10:54:37 +02:00
PrimeBuild-pc cb0c5c3efb feat: Game Boost scheduler hints and dynamic CPU Set release
Game Boost now gives Windows hints as well as constraints, and adapts
the game's CPU Set to its load instead of applying it once:

- the game gets high QoS (power throttling off), on every CPU, so
  Windows never throttles it while it is not in the foreground;
- in Isolation the listed background apps get EcoQoS, also on CPUs
  where CPU Sets are not applied;
- a game that keeps its confined CPUs saturated has its CPU Set
  released so Windows can use every core, and confined again after a
  minute of low load (hysteresis, at most two releases per session).

Same ownership rules as CPU Sets: only values Windows still manages
are changed, user rules and the app's own QoS win, everything is
journaled and restored on exit, toggle and after a crash.

Efficiency mode writes now keep the process's other power-throttling
flags: Windows replaces the whole state on set, so the old write wiped
a timer-resolution opt-out set by the process itself.
2026-10-22 10:54:37 +02:00
Prime Build 2665d2be9f feat: release experimental Game Boost preview 1.7.8-beta.1
Restore the complete local Game Boost/runtime topology work from 6c36ea6, including Activity diagnostics, while preserving the stable 1.7.7 release and channel guards. Preview notes document pending dual-CCD Ryzen/X3D, Intel hybrid, benchmarks and anti-cheat validation, with tester instructions.
2026-10-16 12:09:56 +02:00