Repository navigation
[pr-performance] Batch GPU constant snapshots and tune renderer worker scheduling - #40
Draft
matrixfede wants to merge 1 commit into
Draft
matrixfede wants to merge 1 commit into
matrixfede wants to merge 1 commit into
Conversation
Open
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it changes
The renderer can collect constant-buffer ranges into slot-aligned snapshots on the GPU and batch descriptor writes. The command list retains the descriptor resources it references until retirement. The patch also changes how image uploads are staged and submitted, adds worker-placement controls for hybrid CPUs on Windows, and keys cached shaders by their translation settings. The archive loader recognizes AppleDouble companion files.
How it was tested
Fixed-input 300-second scene on Windows, Core i9-14900HX, RTX 4090 Laptop GPU and 64 GiB RAM. Series X profile, 2560×1440 SDR, DLSS Quality (1706×960 internal), frame generation off, default ray-tracing selection. FPS counts frames produced by the renderer.
rt-test-14(3c6961e)dc12c3d, tuned profilecd6aeea, tuned profileEach row is one accepted run. The proposed build gained 9.62 native FPS (+41.8%) against the official release in this scene. The comparison includes both code and renderer settings. The relative contribution of each change is unknown. The proposed build produced 9,794 frames in 299.966 s. Grouped frame telemetry independently gave 32.65 FPS. Four image checks at 50, 120, 150 and 260 s stayed within the scene-matching threshold. The run logged zero out-of-memory pipeline failures or device-loss errors. An earlier attempt was discarded at 50 s because its camera view differed from the reference.
Shader unit tests cover both wave32 and wave64 paths. The scene was run on one NVIDIA GPU with the renderer's default wave selection. Forced wave sizes and other GPUs still need validation.
The proposed source passed a locked release build,
cargo check -p victory-gpu --locked --releaseandcargo xtask policy --staged. Release-mode tests passed for the GPU library (1,701), HLE library (468), shader library (619) and CLI binary (145), with 75 ignored. Precompilation built 3,577 of 3,578 requested pipelines. One compute pipeline could not be translated.Explicit renderer settings used for the comparison
Official release run:
Tuned-profile overrides and additions on top of those settings (last setting wins):
Checked for overlap