1
Commit Graph

12 Commits

Author SHA1 Message Date
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 33dfd4b4c5 fix: processEntry32 DefaultHeapID uint32 instead of uintptr 2026-06-19 23:24:01 +03:00
lzrdblzzrd b999b7ec4f refactor: error handling, single rss call, stale PID cleanup, utf16 trim, O_APPEND log 2026-06-19 23:20:10 +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 c8648da296 updated with opencode 2026-06-17 02:15:43 +03:00
lzrdblzzrd 0b714dd3ef added a check for a running instance of the program 1.1 2023-01-15 16:08:01 +03:00
lzrdblzzrd 39030102b4 go.sum has been cleaned up 1.0 2023-01-15 09:55:58 +03:00
lzrdblzzrd 6e1d1da239 initial commit 2023-01-15 03:28:39 +03:00
lzrdblzzrd 0876ff81db Initial commit 2023-01-15 03:25:23 +03:00