Resolve intermittent stretched geometry and corrupted draw inputs #3
Labels
No labels
accessibility
area: compatibility
area: docs
area: hygiene
area: infra
area: memory
area: ray-tracing
area: rendering
area: shaders
area: submission
area: textures
bug
ci
dependencies
difficulty: advanced systems
difficulty: intermediate
documentation
duplicate
enhancement
experimental
good first issue
help wanted
invalid
known issue
performance
priority: P0
priority: P1
priority: P2
proposal
question
rendering
research
testing
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VictoryX-dev--VictoryX#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@VictoryX-dev on GitHub · 2026-12-03 02:57 UTC · original
Problem
Some scene and character objects intermittently render with stretched or expanding polygons during gameplay. We need reproducible evidence pinpointing the exact corrupt draw-input path(s) and a targeted fix that does not degrade frame pacing or memory stability.
Known Evidence
VICTORY_DRAW_INPUT_ALIAS=1(host/draw_inputs.rs): routes indirect draw/dispatch inputs (arguments, count, vertex and index buffers) to the GPU writer's backing when the same command list made an exact full GPU copy over those bytes before the consumer. Synthetic RX 9070 XT D3D12 debug-layer fixture (draw::geometry_order_tests::alias_tests::exact_draw_input_aliases_on_rx9070) passes. Current reach is limited to same-list card copies (cross-list copies, shader writes and dynamically indexed buffers still fall back to default lookup).VICTORY_SUBMIT_TAKE=2(submit_take.rs): audit-only mode that countsGEOMETRY PAGES WRITTEN AFTER THEIR SUBMITwhen the title mutates vertex/index pages between itsExecuteCommandListscall and our submitting lane's preparation. Synthetic fixture passes. (Mode1is unreviewed and unsafe — do not use.)Approaches That Did Not Work
VICTORY_WINDOWS_ORDERED=1(kept off): Promoted one-sided windows rewritten under an in-flight reader to per-submission ordered copies. The mechanism fired as designed (~42 rewrites/frame ordered), but stretched geometry still occurred, while P99 worsened by +2.5 ms and private bytes rose by +0.5 GB.Relevant Source Modules
runtime/crates/victory-gpu/src/host/draw_inputs.rsruntime/crates/victory-gpu/src/submit_take.rsruntime/crates/victory-gpu/src/host/geomtrace.rsruntime/crates/victory-gpu/src/draw.rsruntime/crates/victory-gpu/src/indirect.rsruntime/crates/victory-gpu/src/shadow.rsruntime/crates/victory-gpu/src/replay/Expected Contribution
VICTORY_SUBMIT_TAKE=2,VICTORY_GEOMETRY_TRACE=2,VICTORY_STALE_DRAWS=1) and gameplay A/B checks onVICTORY_DRAW_INPUT_ALIAS=1to determine whether stretched geometry stems from:VICTORY_ASYNC_SUBMIT=1,Acceptance Criteria