Reset the rig watcher CPU baseline when PIDs change #4835

Open
github-bot wants to merge 1 commit from github-bot/gh-4834 into main AGit
Owner

@⁠Andrew05213 on GitHub · 2026-12-01 10:42 UTC · original
Andrew05213:audit/watch-rig-cpu-pids → main · +7 −3 · 1 files · 1 commits · open

What it changes

Compute CPU deltas only between samples with the same PID set and a positive elapsed interval. Reordering the same processes preserves their sampling baseline.

How it was tested

Synthetic watcher tests on Windows 11 build 26300, Windows PowerShell 5.1.26100.9818, and PowerShell 7.6.9.

  • Before (5fabb46eaf6ed8771321787f8871051abde69b9b): Changing the process set introduced a 100% spike from a new process's historical CPU time.
  • After: The cross-process delta was discarded. The multi-PID control reported 20%, 0%, and 20% as the set reordered, changed, and stabilized. The focused cases passed three rounds per engine.

Game runs, live hardware telemetry, and Cargo were not tested.

Checked for overlap

  • Related: #4767 resets the low-FPS streak after a log switch. Its exact head still reproduced the CPU spike. The search covered relevant public queries and returned watcher changes. It did not enumerate every open PR.

AI-assisted contribution using OpenAI Codex.

**@⁠Andrew05213** on GitHub · 2026-12-01 10:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4834) `Andrew05213:audit/watch-rig-cpu-pids` → `main` · +7 −3 · 1 files · 1 commits · open ## What it changes Compute CPU deltas only between samples with the same PID set and a positive elapsed interval. Reordering the same processes preserves their sampling baseline. ## How it was tested Synthetic watcher tests on Windows 11 build 26300, Windows PowerShell 5.1.26100.9818, and PowerShell 7.6.9. - Before (`5fabb46eaf6ed8771321787f8871051abde69b9b`): Changing the process set introduced a 100% spike from a new process's historical CPU time. - After: The cross-process delta was discarded. The multi-PID control reported 20%, 0%, and 20% as the set reordered, changed, and stabilized. The focused cases passed three rounds per engine. Game runs, live hardware telemetry, and Cargo were not tested. ## Checked for overlap - [ ] Related: #4767 resets the low-FPS streak after a log switch. Its exact head still reproduced the CPU spike. The search covered relevant public queries and returned watcher changes. It did not enumerate every open PR. AI-assisted contribution using OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 10:47:30 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4835/head:github-bot/gh-4834'
git switch 'github-bot/gh-4834'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4834'
git switch 'github-bot/gh-4834'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4834'
git switch 'github-bot/gh-4834'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4834'
git switch 'main'
git merge --squash 'github-bot/gh-4834'
git switch 'main'
git merge --ff-only 'github-bot/gh-4834'
git switch 'main'
git merge 'github-bot/gh-4834'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4835
No description provided.