Repository navigation
GPU: synchronize frame interval resets with tick reservations - #63
Closed
devin-ai-integration[bot] wants to merge 15 commits into
Closed
devin-ai-integration[bot] wants to merge 15 commits into
devin-ai-integration[bot] wants to merge 15 commits into
Conversation
Under Wine each GetWriteWatch costs about 1 ms whatever the range (contention on Wine's virtual-memory lock with the title's write faults). Allocations are walked once and cached by base, a watched allocation is asked about whole so the submission's other buffers in it answer from the journal, and file views (xmem's physical pages) skip the watch question entirely and go straight to their guards. Region entries drop on remap, rewrite and failed whole askings. Re-applied onto the round-2 watch: known_view composes with the mapped shortcut, guard() takes the known_mapped hint as in the original port. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The disk error path returned the translation as an error, and Shader::translated remembers failures for the rest of the run: a full or read-only cache directory cost every draw of the program. The shader is now returned uncached (the same work the converter just did). Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…dline Warm-up wrote only native-mesh cache entries while emulation hardware keys by the emulation mode, so mesh programs still translated on first use there. The mode now follows the machine's mesh support. And once VICTORY_WARM_SECONDS expires, the walk stops opening assets instead of scanning every remaining one for workers that break out at once. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
writes never marked the allocation as covered, so even disjoint buffers in one watched allocation repeated the whole scan once a flush each — under Wine, about 1 ms a scan. The covered range joins the submission's ahead askings; the coverage ends with the submission as the batch's does. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…sk switches An entry the region walk did not complete no longer types unverified pages as file views; a write into the middle of an allocation drops its entry (not only one at the base); and the mapped shortcut honors VICTORY_VIEW_ASK/VICTORY_GUARD_ASK like the guards' own fast paths. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ne first Only a mesh program's container keys by the mesh mode at runtime: warming every container in the emulation mode on emulation hardware left vertex, pixel and compute shaders uncached there. The mode now follows the container's own stage. Warm-up also probes the view-index cap as runtime translation does, and the deadline check leads the entry loop so later roots are not walked for nothing. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Two corrections to the coverage registration: the narrow retry's answer covers only the range asked, so a failed whole scan followed by a good narrow one no longer claims the allocation; and the entry is registered only while a submission's batch asking stands, because outside one nothing ends it — a heap created there would otherwise answer from a stale snapshot for the rest of the run. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…warm-up mesh mode + deadline)
…s, cached (re-port #47)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
GPU: skip pipeline demand for empty compute dispatches
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
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.
Summary
Ports the implementation part of upstream Marvisak/VIctory#2479.
set_intervalnow holds the frame-clock mutex while reading the last reserved tick and replacing the clock. Previously a concurrentnext_tickcould reserve a newer tick between those operations, anchoring the replacement interval to stale time and potentially adding an extra interval to subsequent frame waits.This is a small frame-pacing correctness fix relevant to stable FPS measurement on the 30 fps target.
Validation:
CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo check --locked -p victory-gpu --all-targets --target x86_64-pc-windows-msvcCARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo clippy --locked -p victory-gpu --all-targets --all-features --target x86_64-pc-windows-msvccargo run --locked --quiet --package xtask -- policyNo GPU/Proton runtime validation is available in this VM.