HLE: keep one view of a physical-page section instead of a view per write (VICTORY_XMEM_PERSISTENT_VIEW=1) #231

Open
HailLucifer666 wants to merge 4 commits from upstream-pr/231 into main
HailLucifer666 commented 2026-11-24 22:51:37 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HailLucifer666 on 2026-11-24T22:51:37Z.


Problem

  • write_physical and page_window reach the physical pages through View::map, which maps a view of the section, commits it with VirtualAlloc(MEM_COMMIT), writes, then unmaps it in Drop for View. Every write pays a MapViewOfFile, a commit and an UnmapViewOfFile, once per run of consecutive pages, however few bytes it touches.
  • page_window and write_physical have exactly one production caller: the DirectStorage destination path in dstorage.rs, which tries page_window first and falls back to write_physical. That is the streaming path, called once per in-flight request on every worker, for the whole world load and for every texture streamed while playing. An unmap invalidates that mapping's translations on every processor, so the cost is charged to all cores rather than to the writer alone.

Fix

  • Section keeps one read-write view of its whole range, mapped on first use and unmapped when the section goes (MappedBase, dropped with the Section), plus one bit per 64 KiB page recording which pages are already committed through it.
  • View becomes an enum: Temporary is the old map/commit/unmap path, Persistent points into the section's view and unmaps nothing when it drops. Section::ensure_committed commits a run in a single call the first time and makes no calls after, reusing commit() so a host at its commit limit still produces the same crash report.
  • Every half the host can refuse — the whole-section map, the commit — falls back to View::temporary, so the worst case is today's behaviour. Mapping is the seam that lets tests force either path, since the switch is read once per process.
  • Opt-in with VICTORY_XMEM_PERSISTENT_VIEW=1, matching the other rollout switches here. It holds a whole-section mapping for the section's life, which is 6.1 GiB of address space for the title's largest allocation, so it should be proven by a live run before it becomes the default. No frame-rate claim is made here — this tree cannot measure that.

Verification

  • cargo test -p victory-hle xmem:: --locked — 16 passed (5 new, all executing: parse_persistent_views_accepts_only_an_explicit_yes, persistent_views_write_and_commit_once, persistent_page_windows_share_one_mapping, temporary_views_never_map_the_section_whole, ensure_committed_refuses_ranges_outside_the_section).
  • cargo clippy --workspace --all-targets --locked -- -D warnings — clean
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — clean
  • cargo test -p xtask --locked — 4/4 passed
  • Mutation probes, all run 2026-11-25 and restored: mark_committed made a no-op fails the two committed_all assertions and nothing else; removing the commit call makes the persistent write fault with STATUS_ACCESS_VIOLATION, which proves the commit is load-bearing; forcing the committed_all fast path off leaves 16/16 green, so it is documented as the one surviving mutation rather than given a test that could not fail.
  • The default path is byte-identical to before (View::temporary is the old View::map body), so every pre-existing test is the negative control for the persistent one.

Notes for review

  • Deliberately untouched: XMemMapPhysicalPages, its placeholders, and the unmap() bookkeeping — the persistent view is not in physical.views, so remapping and unmapping behave exactly as before.
  • Merge adjacency: #115 also edits write_physical and the PageWindow fields; this touches PageWindow only by changing the type of its view field. Whichever lands second rebases cheaply.
<!-- greyfinch-sync:fxceless/victory-fork:issue:5481660650 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/231). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-24T22:51:37Z. --- ### Problem - `write_physical` and `page_window` reach the physical pages through `View::map`, which maps a view of the section, commits it with `VirtualAlloc(MEM_COMMIT)`, writes, then unmaps it in `Drop for View`. Every write pays a `MapViewOfFile`, a commit and an `UnmapViewOfFile`, once per run of consecutive pages, however few bytes it touches. - `page_window` and `write_physical` have exactly one production caller: the DirectStorage destination path in `dstorage.rs`, which tries `page_window` first and falls back to `write_physical`. That is the streaming path, called once per in-flight request on every worker, for the whole world load and for every texture streamed while playing. An unmap invalidates that mapping's translations on every processor, so the cost is charged to all cores rather than to the writer alone. ### Fix - `Section` keeps one read-write view of its whole range, mapped on first use and unmapped when the section goes (`MappedBase`, dropped with the `Section`), plus one bit per 64 KiB page recording which pages are already committed through it. - `View` becomes an enum: `Temporary` is the old map/commit/unmap path, `Persistent` points into the section's view and unmaps nothing when it drops. `Section::ensure_committed` commits a run in a single call the first time and makes no calls after, reusing `commit()` so a host at its commit limit still produces the same crash report. - Every half the host can refuse — the whole-section map, the commit — falls back to `View::temporary`, so the worst case is today's behaviour. `Mapping` is the seam that lets tests force either path, since the switch is read once per process. - Opt-in with `VICTORY_XMEM_PERSISTENT_VIEW=1`, matching the other rollout switches here. It holds a whole-section mapping for the section's life, which is 6.1 GiB of address space for the title's largest allocation, so it should be proven by a live run before it becomes the default. **No frame-rate claim is made here** — this tree cannot measure that. ### Verification - `cargo test -p victory-hle xmem:: --locked` — 16 passed (5 new, all executing: `parse_persistent_views_accepts_only_an_explicit_yes`, `persistent_views_write_and_commit_once`, `persistent_page_windows_share_one_mapping`, `temporary_views_never_map_the_section_whole`, `ensure_committed_refuses_ranges_outside_the_section`). - `cargo clippy --workspace --all-targets --locked -- -D warnings` — clean - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` — clean - `cargo test -p xtask --locked` — 4/4 passed - Mutation probes, all run 2026-11-25 and restored: `mark_committed` made a no-op fails the two `committed_all` assertions and nothing else; removing the `commit` call makes the persistent write fault with `STATUS_ACCESS_VIOLATION`, which proves the commit is load-bearing; forcing the `committed_all` fast path off leaves 16/16 green, so it is documented as the one surviving mutation rather than given a test that could not fail. - The default path is byte-identical to before (`View::temporary` is the old `View::map` body), so every pre-existing test is the negative control for the persistent one. ### Notes for review - Deliberately untouched: `XMemMapPhysicalPages`, its placeholders, and the `unmap()` bookkeeping — the persistent view is not in `physical.views`, so remapping and unmapping behave exactly as before. - Merge adjacency: #115 also edits `write_physical` and the `PageWindow` fields; this touches `PageWindow` only by changing the type of its `view` field. Whichever lands second rebases cheaply.
avt0m4t48 commented 2026-11-24 22:58:52 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-24T22:58:52Z.

Review: COMMENTED


P2. Borrow only the requested byte range in a persistent view. On 5faabc4, View::bytes() constructs an exclusive slice over every page in the mapped run. PageWindow::bytes() and the buffered write path then narrow it. Because the persistent view shares one virtual address, independent DirectStorage requests writing disjoint ranges of the same page can still form overlapping mutable references. The workers execute outside the scheduler lock. View · Scheduler · Rust slice safety contract

Could the view take a checked offset and length and create the mutable slice only over those bytes? Actual overlapping writes would still need an enforced exclusion rule before using one address for both. The existing DirectStorage fixture submits overlapping destinations through the in-place and buffered paths. This is a source-review finding. Existing fixture

<!-- greyfinch-sync:fxceless/victory-fork:review:6048736882 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/231#pullrequestreview-6048736882). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-24T22:58:52Z. **Review:** COMMENTED --- **P2. Borrow only the requested byte range in a persistent view.** On `5faabc4`, `View::bytes()` constructs an exclusive slice over every page in the mapped run. `PageWindow::bytes()` and the buffered write path then narrow it. Because the persistent view shares one virtual address, independent DirectStorage requests writing disjoint ranges of the same page can still form overlapping mutable references. The workers execute outside the scheduler lock. [View](https://github.com/fxceless/victory-fork/blob/5faabc4e67900f7acb0913abc4f59f277d1147bb/crates/victory-hle/src/modules/xmem.rs#L697-L724) · [Scheduler](https://github.com/fxceless/victory-fork/blob/5faabc4e67900f7acb0913abc4f59f277d1147bb/crates/victory-hle/src/modules/dstorage.rs#L443-L455) · [Rust slice safety contract](https://doc.rust-lang.org/std/slice/fn.from_raw_parts_mut.html#safety) Could the view take a checked offset and length and create the mutable slice only over those bytes? Actual overlapping writes would still need an enforced exclusion rule before using one address for both. The existing DirectStorage fixture submits overlapping destinations through the in-place and buffered paths. This is a source-review finding. [Existing fixture](https://github.com/fxceless/victory-fork/blob/5faabc4e67900f7acb0913abc4f59f277d1147bb/crates/victory-hle/src/modules/dstorage.rs#L1511-L1529)
HailLucifer666 commented 2026-11-25 01:11:58 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HailLucifer666 on 2026-11-25T00:19:57Z.


Thanks — this was right, and the second half of it was the more important half.

View::bytes() formed its slice over the whole run, and only write_physical / PageWindow::bytes narrowed it afterwards. Through the temporary path that was harmless, because every view has an address of its own. Through the persistent path the section has one address, so narrowing after the fact was too late: two requests writing different bytes of one page each held a slice over the whole page.

Both halves are now done, in 8ad1bd62:

  1. View::bytes_at(from, len) takes the offset and length and returns exactly those bytes, on either path. Nothing in the module forms a slice over a whole run any more, so writers whose bytes do not touch hold disjoint slices even inside one page.

  2. The exclusion rule is enforced, not assumed. Section records the byte ranges its live persistent views hold; hold refuses a claim that touches a live one, and View::persistent returns None when refused — so the caller lands on a temporary view, which has an address of its own. Writers whose bytes really do overlap therefore go through two addresses and never through two slices at one base. A view gives its range back when it drops.

You were also right that I had nothing to point at. I had written that the title "writes each destination alone" and cited dstorage, but the page-destination branch states only a size fact — and zlib_into_pages_in_place_and_across_allocations enqueues two requests with the same destination pages from the same offset, one through the in-place path and one through the buffered path. That is the case the claim rule now handles.

What this does not do: it does not make overlapping concurrent writes correct. It makes them fall back to the path that was correct before, so a writer overlapping another still sees whichever write lands last, exactly as it did previously. Making that correct would need an ordering guarantee on the title's side that I cannot verify from here.

Verification (all local; the fork's CI runs sit at action_required until a maintainer approves them):

  • cargo test -p victory-hle xmem:: --locked — 18 passed, including two new tests: a_view_slice_covers_only_the_bytes_asked_for and a_second_overlapping_persistent_view_falls_back_to_a_temporary_one.
  • clippy -D warnings clean, with and without --all-features; cargo test -p xtask 4 passed; cargo test --workspace --locked green.
  • Mutation probes, each verified applied and restored: bytes_at returning the whole run fails with left: 65536, right: 3; its end check removed makes the past-the-end case read on instead of refusing; skipping the claim makes the second overlapping view Persistent; never releasing it makes the re-claim fail.

One residual I should name rather than leave implied: a leaked PageWindow would hold its range for good, so later writes to those bytes would keep taking the temporary path — slower and correct, degrading toward the old behaviour rather than toward unsoundness.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7148398058 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/231#issuecomment-7148398058). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-25T00:19:57Z. --- Thanks — this was right, and the second half of it was the more important half. **`View::bytes()` formed its slice over the whole run**, and only `write_physical` / `PageWindow::bytes` narrowed it afterwards. Through the temporary path that was harmless, because every view has an address of its own. Through the persistent path the section has one address, so narrowing after the fact was too late: two requests writing different bytes of one page each held a slice over the whole page. Both halves are now done, in `8ad1bd62`: 1. **`View::bytes_at(from, len)`** takes the offset and length and returns exactly those bytes, on either path. Nothing in the module forms a slice over a whole run any more, so writers whose bytes do not touch hold disjoint slices even inside one page. 2. **The exclusion rule is enforced, not assumed.** `Section` records the byte ranges its live persistent views hold; `hold` refuses a claim that touches a live one, and `View::persistent` returns `None` when refused — so the caller lands on a temporary view, which has an address of its own. Writers whose bytes really do overlap therefore go through two addresses and never through two slices at one base. A view gives its range back when it drops. You were also right that I had nothing to point at. I had written that the title "writes each destination alone" and cited `dstorage`, but the page-destination branch states only a size fact — and `zlib_into_pages_in_place_and_across_allocations` enqueues two requests with the same destination pages from the same offset, one through the in-place path and one through the buffered path. That is the case the claim rule now handles. What this does **not** do: it does not make overlapping concurrent writes correct. It makes them fall back to the path that was correct before, so a writer overlapping another still sees whichever write lands last, exactly as it did previously. Making that correct would need an ordering guarantee on the title's side that I cannot verify from here. Verification (all local; the fork's CI runs sit at `action_required` until a maintainer approves them): - `cargo test -p victory-hle xmem:: --locked` — 18 passed, including two new tests: `a_view_slice_covers_only_the_bytes_asked_for` and `a_second_overlapping_persistent_view_falls_back_to_a_temporary_one`. - clippy `-D warnings` clean, with and without `--all-features`; `cargo test -p xtask` 4 passed; `cargo test --workspace --locked` green. - Mutation probes, each verified applied and restored: `bytes_at` returning the whole run fails with `left: 65536, right: 3`; its end check removed makes the past-the-end case read on instead of refusing; skipping the claim makes the second overlapping view `Persistent`; never releasing it makes the re-claim fail. One residual I should name rather than leave implied: a leaked `PageWindow` would hold its range for good, so later writes to those bytes would keep taking the temporary path — slower and correct, degrading toward the old behaviour rather than toward unsoundness.
HailLucifer666 commented 2026-11-25 14:10:52 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HailLucifer666 on 2026-11-25T13:50:28Z.


Your P2 is fixed on ec89292d, in both halves you asked for.

The range. View::bytes_at(from, len) builds the mutable slice over [from, from + len) and nothing else — a checked from.checked_add(len) <= whole first, so a range that does not lie inside the view is a panic with the numbers in it rather than a slice over someone else's pages. Two independent DirectStorage requests writing disjoint ranges of the same page now get disjoint slices even though they lie in one page, which the old whole-run slice could not give them.

The exclusion. You were right that disjoint bytes are not enough on their own — the same virtual address shared by two lifetimes still needs a rule. Section::hold now refuses a second live persistent view whose bytes touch an existing one, and that request falls back to a temporary copy instead (a_second_overlapping_persistent_view_falls_back_to_a_temporary_one). So actual overlaps are excluded rather than merely being unlikely, and only ranges that never touch share the mapping.

Tests: a_view_slice_covers_only_the_bytes_asked_for pins the range; the fallback test pins the refusal. cargo test -p victory-hle --lib xmem::tests → 19 passed, 0 failed.

Probe: hand back the whole run again (from_raw_parts_mut(ptr, whole), the old shape) → six tests fail, including the range one and the write path; restored byte-identical.

Still true, and worth saying so that it is not read as covered: this is proven against the simulated fixtures only. The DirectStorage workers run outside the scheduler lock, and the only thing that can confirm the ordering in production is the title running a real streaming load with VICTORY_XMEM_PERSIST=1.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7164367191 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/231#issuecomment-7164367191). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-25T13:50:28Z. --- Your P2 is fixed on `ec89292d`, in both halves you asked for. **The range.** `View::bytes_at(from, len)` builds the mutable slice over `[from, from + len)` and nothing else — a checked `from.checked_add(len) <= whole` first, so a range that does not lie inside the view is a panic with the numbers in it rather than a slice over someone else's pages. Two independent DirectStorage requests writing disjoint ranges of the same page now get disjoint slices even though they lie in one page, which the old whole-run slice could not give them. **The exclusion.** You were right that disjoint bytes are not enough on their own — the same virtual address shared by two lifetimes still needs a rule. `Section::hold` now refuses a second live persistent view whose bytes touch an existing one, and that request falls back to a temporary copy instead (`a_second_overlapping_persistent_view_falls_back_to_a_temporary_one`). So actual overlaps are excluded rather than merely being unlikely, and only ranges that never touch share the mapping. **Tests:** `a_view_slice_covers_only_the_bytes_asked_for` pins the range; the fallback test pins the refusal. `cargo test -p victory-hle --lib xmem::tests` → 19 passed, 0 failed. **Probe:** hand back the whole run again (`from_raw_parts_mut(ptr, whole)`, the old shape) → six tests fail, including the range one and the write path; restored byte-identical. Still true, and worth saying so that it is not read as covered: this is proven against the simulated fixtures only. The DirectStorage workers run outside the scheduler lock, and the only thing that can confirm the ordering in production is the title running a real streaming load with `VICTORY_XMEM_PERSIST=1`.
HailLucifer666 commented 2026-11-26 14:03:31 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HailLucifer666 on 2026-11-26T13:50:21Z.


Rebased onto main a20809de; head is now ad67d255. Four conflicts in xmem.rs, all the same shape: main added framelog meters and the split_late retry, while this branch renames the section handle and makes View an enum. Resolution keeps both — main's meters and retry path, the branch's View::{Temporary, Persistent} and section.handle — and only a temporary view is unmapped, with that unmap still metered as DiskViewUs. Verified: cargo check/clippy -D warnings on victory-hle clean; victory-hle xmem:: 21 passed, 0 failed.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7193907531 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/231#issuecomment-7193907531). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-26T13:50:21Z. --- Rebased onto `main` `a20809de`; head is now `ad67d255`. Four conflicts in `xmem.rs`, all the same shape: main added framelog meters and the `split_late` retry, while this branch renames the section handle and makes `View` an enum. Resolution keeps both — main's meters and retry path, the branch's `View::{Temporary, Persistent}` and `section.handle` — and only a temporary view is unmapped, with that unmap still metered as `DiskViewUs`. Verified: `cargo check`/`clippy -D warnings` on victory-hle clean; `victory-hle xmem::` 21 passed, 0 failed.
EFriseer commented 2026-11-26 15:04:08 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by EFriseer on 2026-11-26T14:31:37Z.


Measured on hardware, in case it helps this PR along. I wrote the same change independently before I found this PR: one kept view per section, a commit bit per 64 KiB page, behind a switch that is off by default. So these numbers are for the idea, not for this branch's exact code.

Setup: Ryzen 7 5800X3D (16 threads), RTX 5070 12 GB, 64 GB RAM, game on a PCIe 4.0 NVMe drive. Release build of a20809d with the fork's tuned switch set (CARD_WINDOWS_MB=1024, TEXTURE_ROOM_PERCENT=96, HEAP_WORKER, SETTLE_ROOM, PARALLEL_REFRESH, LOOKUP_CACHE and the rest). Free play in the open world and cutscenes of a large retail title. One launch without the change (22 min) and one with it (11 min). The routes differed.

view per request kept view
DirectStorage requests over 250 ms (dstorage "slowest request" lines) 1,012 in 260 five-second lines 1 in 134
slowest request 1,054 ms 250 ms
frame line mean 6.3 fps / 276 ms 8.8 fps / 163 ms
5-second stretches over 300 ms a frame 49 of 240 9 of 127
card idle per frame ("card's clock") 125 ms 61 ms
of it, title not submitting 69 ms 32 ms
of it, layer behind 56 ms 29 ms

No new warnings or errors, and no device loss in either run.

On this 8-core CPU, the per-request map, commit and unmap seemed to compete with the title's own page remapping (map_alias) for the process's address space. The slow requests bunched up exactly where the title streams. That's also where cutscene models stayed low-detail and the frame stalled for 0.5 to 3 s. With the kept view, both mostly went away.

Address space: the kept views reserve the sections' size (6.1 GiB for the largest), and commit charge didn't change visibly.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7194947391 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/231#issuecomment-7194947391). Originally posted by [EFriseer](https://github.com/EFriseer) on 2026-11-26T14:31:37Z. --- Measured on hardware, in case it helps this PR along. I wrote the same change independently before I found this PR: one kept view per section, a commit bit per 64 KiB page, behind a switch that is off by default. So these numbers are for the idea, not for this branch's exact code. **Setup:** Ryzen 7 5800X3D (16 threads), RTX 5070 12 GB, 64 GB RAM, game on a PCIe 4.0 NVMe drive. Release build of a20809d with the fork's tuned switch set (CARD_WINDOWS_MB=1024, TEXTURE_ROOM_PERCENT=96, HEAP_WORKER, SETTLE_ROOM, PARALLEL_REFRESH, LOOKUP_CACHE and the rest). Free play in the open world and cutscenes of a large retail title. One launch without the change (22 min) and one with it (11 min). The routes differed. | | view per request | kept view | |---|---|---| | DirectStorage requests over 250 ms (dstorage "slowest request" lines) | 1,012 in 260 five-second lines | 1 in 134 | | slowest request | 1,054 ms | 250 ms | | frame line mean | 6.3 fps / 276 ms | 8.8 fps / 163 ms | | 5-second stretches over 300 ms a frame | 49 of 240 | 9 of 127 | | card idle per frame ("card's clock") | 125 ms | 61 ms | | of it, title not submitting | 69 ms | 32 ms | | of it, layer behind | 56 ms | 29 ms | No new warnings or errors, and no device loss in either run. On this 8-core CPU, the per-request map, commit and unmap seemed to compete with the title's own page remapping (map_alias) for the process's address space. The slow requests bunched up exactly where the title streams. That's also where cutscene models stayed low-detail and the frame stalled for 0.5 to 3 s. With the kept view, both mostly went away. Address space: the kept views reserve the sections' size (6.1 GiB for the largest), and commit charge didn't change visibly.
HailLucifer666 commented 2026-11-27 09:38:46 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HailLucifer666 on 2026-11-27T09:38:46Z.


@EFriseer — thank you, these are the most useful hardware numbers on this PR, and I want to be precise about what they are: they measure the idea on your independent build and your route, not this branch's code. That is exactly why I would like to ask for one more run.

Could you run this branch's head, ad67d255, with VICTORY_XMEM_PERSISTENT_VIEW=1, on the same route and with the same metrics you reported (slowest DirectStorage request, frame-line mean, 5-second stretches over 300 ms, card idle per frame and the two halves of it)? The switch must be 1; without it the branch takes the old per-request path and the run is not testing the change.

Falsifier up front: if the branch shows no improvement over its own baseline on your machine, then your 276 → 163 ms belongs to the route difference, not to this code — and I will say so rather than quoting it.

If the build has VICTORY_FRAME_LOG=1 and VICTORY_CARD_METER=1 (both on by default in diagnostics builds), attaching that log would let the usual frame's make-up be read directly. Please do not set VICTORY_GPU_TIMING — it sends each list separately and changes the frame being measured.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7214925333 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/231#issuecomment-7214925333). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-27T09:38:46Z. --- @EFriseer — thank you, these are the most useful hardware numbers on this PR, and I want to be precise about what they are: they measure the idea on your independent build and your route, not this branch's code. That is exactly why I would like to ask for one more run. Could you run this branch's head, `ad67d255`, with `VICTORY_XMEM_PERSISTENT_VIEW=1`, on the same route and with the same metrics you reported (slowest DirectStorage request, frame-line mean, 5-second stretches over 300 ms, card idle per frame and the two halves of it)? The switch must be `1`; without it the branch takes the old per-request path and the run is not testing the change. Falsifier up front: if the branch shows no improvement over its own baseline on your machine, then your 276 → 163 ms belongs to the route difference, not to this code — and I will say so rather than quoting it. If the build has `VICTORY_FRAME_LOG=1` and `VICTORY_CARD_METER=1` (both on by default in diagnostics builds), attaching that log would let the usual frame's make-up be read directly. Please do not set `VICTORY_GPU_TIMING` — it sends each list separately and changes the frame being measured.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/231:upstream-pr/231'
git switch 'upstream-pr/231'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/231'
git switch 'upstream-pr/231'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/231'
git switch 'upstream-pr/231'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/231'
git switch 'main'
git merge --squash 'upstream-pr/231'
git switch 'main'
git merge --ff-only 'upstream-pr/231'
git switch 'main'
git merge 'upstream-pr/231'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!231
No description provided.