Skip to content

diagnostics: say why a DirectStorage destination could not be written, and why each indirect execution is dropped - #14

Closed
Skyfrye wants to merge 1 commit into
LooperSalty:anyxboxx/fork-7b0-lot9-mursfrom
Skyfrye:diag/dstorage-indirect-reasons
Closed

Skyfrye wants to merge 1 commit into
LooperSalty:anyxboxx/fork-7b0-lot9-mursfrom
Skyfrye:diag/dstorage-indirect-reasons

Conversation

@Skyfrye

@Skyfrye Skyfrye commented Nov 25, 2026

Copy link
Copy Markdown

What

Log lines and labels only; nothing about what runs changes.

  • DirectStorage (victory-hle/src/modules/dstorage.rs, xmem.rs): the warning "a destination's physical pages could not be written" now carries why= (a page number that was freed, one never handed out, every page known but the host failed to map one, or the page list ending early) plus the request's options and name. View::map logs the OS error when MapViewOfFile fails. XMemFreePhysicalPages gets a debug line. New unit test unwritten_destinations_name_the_page_and_why.
  • ExecuteIndirect (victory-gpu/src/draw.rs, pipeline.rs): every drop inside State::execute_indirect is noted as "indirect kind N: " through a new pipeline::note_drop_as, so the per-reason lines add up to the frame line's indirect figure.

What it already showed (RTX 5080, pin 80d58f8 + #12, own copy of 1.0.2.1)

  • DirectStorage: the warning appears in 10 of 24 of our runs (49 times), one burst per run within about 2 ms, 0 to 4 s after the first bind of the gameplay pipelines; all compressed requests with 1- or 2-page destinations. In the first run with this change it fired 32 times, every time with why="page 0x0 never handed out (pages handed out below 0x2bdb00)" (options=0x200001, once 0x200002). So the page list the request points at holds 0 when the request runs: not a freed page, not a mapping failure. The list is read at execution time, not copied when the request is queued (dstorage.rs around line 963); whether the title reuses that memory before the request runs, or passes something other than a page list with these options, is the open question.
  • ExecuteIndirect: the 1.3 to 2.9 dropped indirect executions a frame of the pin fall to about 0.01 with Port of Marvisak/VIctory #1890 onto lot 9: console wave64 compute on 32-lane hosts (383 → 2 refused compute pipelines on RTX 5080) #12; they were executions bound to pipelines the driver refused. With the labels a run names the two that are left: indirect kind 2: compute 5dc3b25986622949 and 6f225b641c5b0708 (water shaders that do not translate), 1.0 a frame each. No gap in indirect support itself shows up in any of our logs.

Tests

cargo test -p victory-hle --lib -- modules::dstorage: 13 passed. cargo check -p victory-gpu -p victory-hle --features victory-gpu/diagnostics passes.

AI use: Claude Code (Claude Opus 5.5 for the investigation and change, Claude Fable 5.2 for the runs and this description), on my machine with my own copy.

🤖 Generated with Claude Code

…d a reason for every dropped indirect execution

dstorage: the warning "a destination's physical pages could not be written"
now says why (a page freed, never handed out, known but not mapped by the
host, or the page list ending early) with the request's options and name;
View::map logs the OS error when MapViewOfFile fails; XMemFreePhysicalPages
has a debug line.

draw: every drop inside execute_indirect is noted as "indirect kind N:
<reason>" (the builder path and the missing host pipeline path included), so
the per-reason lines add up to the frame line's indirect figure.

Labels and log lines only: nothing about what runs changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Skyfrye

Skyfrye commented Nov 25, 2026

Copy link
Copy Markdown
Author

Closing: AnyXboxX Marvisak#199 moved the engine into the main repository (third_party/victory, no fork any more), so this fork is no longer where changes land. I am re-basing this onto current AnyXboxX main and will re-submit it there, re-measured on that base.

AI use: Claude Code (Claude Fable 5.2).

@Skyfrye Skyfrye closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant