perf(gpu,hle): carve dedicated P-core for submit thread on hybrid CPUs and remove MnK smoothing/deadzone step Body: #1913

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

@⁠maetrik92 on GitHub · 2026-11-29 02:22 UTC · original
maetrik92:fix/hybrid-pcore-and-linear-mouse → main · +60 −34 · 2 files · 1 commits · open

Summary

  1. Intel Hybrid P-Core & Dedicated Submit Core (crates/victory-gpu/src/cores.rs):

    • Previously, keep_submit_core() only carved a dedicated physical core (with both SMT siblings removed from helper pools) when PLACED was true (dual-CCD AMD 3D V-Cache topologies). On Intel hybrid CPUs (e.g., i9-14900K: 8 P-cores / 16 threads + 16 E-cores / 16 threads), victory-submit competed for execution slots on the same P-cores as title/helper workers, and keep_off_the_frames_cores() left E-cores unused for background compilation / DirectStorage tasks.
    • Added hybrid_halves() and fast_carved() to carve 1 dedicated physical P-core (THREAD_PRIORITY_HIGHEST) for victory-submit when VICTORY_SUBMIT_CORE != 0, keep helper workers on the remaining P-cores, and offload keep_off_the_frames_cores() work to E-cores.
  2. 1:1 Linear Mouse-to-Stick Aim (crates/victory-hle/src/modules/mnk.rs):

    • Removed the 20 ms exponential velocity filter, 40 ms post-stop coasting tail, and the 0.24 minimum deadzone jump in Mouse::update_look(), replacing them with direct 1:1 linear delta-to-stick scaling and immediate zeroing when delta == [0, 0].

A/B Benchmark (F3 Overlay)

  • System: Intel Core i9-14900K, NVIDIA RTX 4090 (24 GB, Driver 621.40.0), Windows 11
  • Title / Build: 930.048.020-vb_sub_story (1440p, DLSS Quality, RT OFF, FG OFF)
  • Env flags: VICTORY_BVH_MISS=0, VICTORY_BVH_BUILDER=0, VICTORY_SOFT_VIEWS=0, VICTORY_CARD_BUFFERS_MB=1024
F3 Metric Baseline (main) Patched (cores.rs + target-cpu=native) Delta
FPS 28–35 FPS 34.0 FPS (36.1 titlebar) Locked at top of range
SUBMIT BUSY 24.7–34.2 ms 23.5 ms (WAITS FOR GPU 2.4 ms) -1.2 to -10.7 ms
GPU BUSY 26.2–35.3 ms 28.8 ms (IDLE BEHIND US 0.6 ms) Fully GPU-bound (0.6 ms idle)
LONGEST 34–51 ms 44 ms -7 ms peak frame-time spike
**@⁠maetrik92** on GitHub · 2026-11-29 02:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1913) `maetrik92:fix/hybrid-pcore-and-linear-mouse` → `main` · +60 −34 · 2 files · 1 commits · open ## Summary 1. **Intel Hybrid P-Core & Dedicated Submit Core (`crates/victory-gpu/src/cores.rs`):** - Previously, `keep_submit_core()` only carved a dedicated physical core (with both SMT siblings removed from helper pools) when `PLACED` was true (dual-CCD AMD 3D V-Cache topologies). On Intel hybrid CPUs (e.g., i9-14900K: 8 P-cores / 16 threads + 16 E-cores / 16 threads), `victory-submit` competed for execution slots on the same P-cores as title/helper workers, and `keep_off_the_frames_cores()` left E-cores unused for background compilation / DirectStorage tasks. - Added `hybrid_halves()` and `fast_carved()` to carve 1 dedicated physical P-core (`THREAD_PRIORITY_HIGHEST`) for `victory-submit` when `VICTORY_SUBMIT_CORE != 0`, keep helper workers on the remaining P-cores, and offload `keep_off_the_frames_cores()` work to E-cores. 2. **1:1 Linear Mouse-to-Stick Aim (`crates/victory-hle/src/modules/mnk.rs`):** - Removed the 20 ms exponential velocity filter, 40 ms post-stop coasting tail, and the `0.24` minimum deadzone jump in `Mouse::update_look()`, replacing them with direct 1:1 linear delta-to-stick scaling and immediate zeroing when `delta == [0, 0]`. ## A/B Benchmark (F3 Overlay) - **System:** Intel Core i9-14900K, NVIDIA RTX 4090 (24 GB, Driver 621.40.0), Windows 11 - **Title / Build:** `930.048.020-vb_sub_story` (1440p, DLSS Quality, RT OFF, FG OFF) - **Env flags:** `VICTORY_BVH_MISS=0`, `VICTORY_BVH_BUILDER=0`, `VICTORY_SOFT_VIEWS=0`, `VICTORY_CARD_BUFFERS_MB=1024` | F3 Metric | Baseline (`main`) | Patched (`cores.rs` + `target-cpu=native`) | Delta | | :--- | :--- | :--- | :--- | | **FPS** | 28–35 FPS | **34.0 FPS** (36.1 titlebar) | Locked at top of range | | **SUBMIT BUSY** | 24.7–34.2 ms | **23.5 ms** (`WAITS FOR GPU 2.4 ms`) | **-1.2 to -10.7 ms** | | **GPU BUSY** | 26.2–35.3 ms | **28.8 ms** (`IDLE BEHIND US 0.6 ms`) | Fully GPU-bound (0.6 ms idle) | | **LONGEST** | 34–51 ms | **44 ms** | **-7 ms** peak frame-time spike |
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 02:23:18 +00:00
Author
Owner

@⁠nick0451 on GitHub · 2026-11-29 03:54 UTC · original

Tested on an i9-14900K (8P+16E, 32 threads) + RTX 3090, Windows 11, this PR on main 568c5e5. The log confirms the carve: submitting thread placed on dedicated P-core (VICTORY_SUBMIT_CORE) what="victory-submit" set=256 priority=2, and the helpers go to fast=14 of=32 (main: 16 of 32). It runs cleanly: no crash, the same picture.

Speed on a balcony save (Series S, DLSS performance, 2 rounds against main): 24.9 fps against 25.7, inside this batch's noise. This card is GPU-bound here (85-90% busy), so a submit-thread change can't show. A CPU-bound setup is needed to see the gain. I didn't test the MnK smoothing removal, which is bundled.

🤖 Generated with Claude Code

**@⁠nick0451** on GitHub · 2026-11-29 03:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1913#issuecomment-7250329708) Tested on an **i9-14900K** (8P+16E, 32 threads) + RTX 3090, Windows 11, this PR on main `568c5e5`. The log confirms the carve: `submitting thread placed on dedicated P-core (VICTORY_SUBMIT_CORE) what="victory-submit" set=256 priority=2`, and the helpers go to `fast=14 of=32` (main: 16 of 32). It runs cleanly: no crash, the same picture. Speed on a balcony save (Series S, DLSS performance, 2 rounds against main): 24.9 fps against 25.7, inside this batch's noise. This card is GPU-bound here (85-90% busy), so a submit-thread change can't show. A CPU-bound setup is needed to see the gain. I didn't test the MnK smoothing removal, which is bundled. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/cores.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1913'
git switch 'github-bot/gh-1913'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1913'
git switch 'github-bot/gh-1913'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1913'
git switch 'main'
git merge --squash 'github-bot/gh-1913'
git switch 'main'
git merge --ff-only 'github-bot/gh-1913'
git switch 'main'
git merge 'github-bot/gh-1913'
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!1913
No description provided.