Optimize GPU residency and host scaling for NVIDIA workloads #4636
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4636"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Davetheshrew-git on 2026-12-01T00:24:52Z.
This PR improves GPU utilization and host-side scaling across different RAM and CPU configurations:
Keeps GPU render targets and shader buffers resident to reduce WDDM paging stalls
Adds automatic scaling for RAM tiers and logical CPU counts
Optimizes staging memory allocation and queue synchronization
Refines GPU copy, barrier, and ReBAR behavior
Removes legacy residency flags that were not sufficiently tested
Synchronizes Rust and PowerShell launcher defaults
Adds a React-based tuning console for launch and switch configuration
Updates documentation and launcher naming for VIctory-NVIDIA
Key changes
Added fast staging-memory zeroing with VICTORY_STAGING_FAST_ZERO
Synchronized GPU submission queues before command execution
Improved 16 GB/32 GB+ RAM worker scaling
Added automatic 16/24+ CPU worker pool tuning
Preserved safety guardrails for known face, hair, foliage, and memory issues
Improved shader-cache and pipeline preloading behavior
Updated CI and Clippy fixes for Rust 1.98.1
Added automatic and explicit ReBAR handling
Removed deprecated Steam launcher and old play-foxhound references
Validation
cargo xtask policy
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked
cargo build --release --locked -p victory
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by captn-hook on 2026-12-01T07:41:02Z.
Test data for the
VICTORY_TEXTURE_SOFT_MBchange here, on a 16 GB card (RTX 3080 Laptop 16 GB, Series S 960x540, DLSS Performance). Diagnostics build ofmainat7d93ee07,scripts/bench.ps1, same save, 120 s windows. Flicker = frames withVICTORY_POP_WATCHblips.With 3000 the copies sat at about 3.1 GB, so the sweep ran all the time with about 1.4 GB of the card free. The visible effect was grey/neutral textures flashing in and out.
Two notes on the change:
"auto"isn't parsed bysoft_budget(). It works only because the failed parse reads as unset and the dynamic cap takes over. An empty value or removing the line would say that directly.max(soft, dynamic_texture_cap). That leaves small cards as they are and lifts the cap on large ones.(Drafted with Claude Code from my own runs.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:36:01Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed