1
Commit Graph

7 Commits

Author SHA1 Message Date
lzrdblzzrd bf37dd6974 Update README: fix defaults (game-mem=2G), remove SKIP RESTORE, add GAME DETECT, update game mode description 2026-06-23 11:20:55 +03:00
lzrdblzzrd 565b751195 Rewrite game mode: two-pass scan, priority restoration, LimitedInformation access
- Use PROCESS_QUERY_LIMITED_INFORMATION instead of PROCESS_QUERY_INFORMATION
  to open processes (fixes Access Denied for KeePassXC, HD-Player, etc.)
- Separate query handle from set handle: trySetPrio reopens with
  PROCESS_SET_INFORMATION only when needed
- Two-pass scan: pass 1 collects RSS and detects game processes,
  pass 2 applies priorities with correct hasGame state
- Game mode saves original priorities in gameSaved map, restores them
  on GAME MODE OFF (not just NORMAL)
- Demote ALL non-game processes to IDLE in game mode (not just promoted)
- 50ms delay between priority changes for smooth transitions
- Replace isAlive/procName with pidMap from allProcs snapshot
- Replace mutex/MessageBox single-instance with killOtherInstances
- Defaults: -mem=512M, -game-mem=4G
- Fix double CloseHandle and handle leak in trySetPrio
- Update README with new defaults and game mode restoration behavior
2026-06-22 17:24:21 +03:00
lzrdblzzrd b5885791fa Fix process entry struct, add demote logic, block protected processes, improve logging 2026-06-21 15:11:15 +03:00
lzrdblzzrd d4da33ca5e fix: ErrorAlreadyExists 1832->183, wrap syscall errors, signal handling, mutex cleanup, log sync 2026-06-20 23:41:59 +03:00
lzrdblzzrd d0cafe1332 log: move log file to temp directory with fallback 2026-06-19 21:39:45 +03:00
lzrdblzzrd c3cb8ae847 rewrite: single file, zero deps, Windows API, logging, CLI flags 2026-06-19 21:37:01 +03:00
lzrdblzzrd 0876ff81db Initial commit 2023-01-15 03:25:23 +03:00