Texture guard: see writes through every view of its pages (boot video glitch) #115
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!115
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-115"
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?
@Spexivus on GitHub · 2026-11-24 21:36 UTC · original
Spexivus:texture-guard-views→main· +354 −17 · 6 files · 1 commits · openBefore: the texture guard made the 64 KiB blocks of one view read-only and learned of writes only at that address: a fault there,
watch::writing, or a mapping. Physical pages can be mapped at several addresses, though, and a write through another view of the same pages, or the runtime's own write into physical pages (write_physical, DirectStorage page destinations), never faults at the guarded address. The guard then reported the texture unwritten, so it was hashed only on its turn every eighth frame and kept showing stale contents in between.After: a write to the pages is seen whichever way it arrives.
watch.rs: the guard makes every view of the guarded physical pages read-only. A fault at any of them, orwriting, opens and marks all of them written. Newtitle_memory_written(section, offset, len)lets the runtime report its own writes into physical pages, and a view newly mapped over guarded pages makes their guards check again.inplace.rs: an index from (section, 64 KiB offset) to every view showing it, kept bytitle_memory_view/views_gone, withviews_between,pages_ofandviews_of_sectionto look it up.xmem.rs:write_physicalreports each run it writes;PageWindow::written()reports the window.dstorage.rscalls it after filling a page destination.texture.rs: withdiagnostics, a one-time warning when a hash finds a change the guard did not report, naming the texture, so any write path still missed shows up.Unchanged:
HASH_EVERY, and memory that is not written costs the same as before (no faults, no hash). The hash stays as the net under the guard.Tests: three new ones in
watch.rs(a write through another view, a view mapped beside a guarded one, a runtime write into physical pages).cargo test -p victory-gpu --features diagnostics120 passed,victory-hle95 passed, clippy clean with and withoutdiagnostics.@thiagolima0 on GitHub · 2026-11-24 22:00 UTC · original
Confirmed on AMD: this fixes the boot video stutter on an RX 6600M.
Setup: AMD Radeon RX 6600M (8 GB, 32-lane waves), driver 32.0.21045.16010, Windows 11 26200, default TDR. Own 1.0.2.1 copy, Series X profile,
cargo build --profile diag -p victory --features diagnostics. Tree:4e17478+ #24, #23, #9, #40, #25, #38, then this PR merged on top (no conflicts). Hashes and counts only, nothing from the game attached.What it looked like before: the boot video played visibly jerky, and the present timing did not explain it. With
VICTORY_LOG=victory_gpu::frame=debug, presents during the video arrive steadily (0-2 intervals over 45 ms per 5 s, nearly all 33-37 ms). The problem is the content. I saved 24 consecutive frames during the video (VICTORY_KEYS=25:Enter,27:Enter VICTORY_CAPTURE_FRAMES=760,...,783) and hashed the PNGs:Without it, the video's three frame buffers cycle: frames 761-770 show the same three images in turn (
A B C A B C ...). Only one buffer gets new content every 8-9 frames (one new image at 771, another at 779). That fits the every-eighth-frame hash you describe: the picture jumps back and forth between stale frames. With the PR every frame is new, and thea texture's hash found a change its guard did not reportwarning did not fire in the run.Tests:
cargo test -p victory-gpu -p victory-hle --libon this card: 115 + 95 passed, 1 ignored.Unrelated, from the same runs, in case it helps someone else: the 1.0-1.5 s freezes on the black screen before the first logo are a title worker making about 54,000 one-page
XMemMapPhysicalPagescalls while the main thread polls withSleepEx. About 0.5 s of that is ours (VirtualFreeplaceholder split +MapViewOfFile3≈ 6.8 µs per call, commit ≈ 1.6 µs). The rest is the title's own page-list comparison. They happen before anything is drawn, so they are not visible as stutter.AI-assisted (Claude Code); hashes, counts and log lines only.
@ryotdev on GitHub · 2026-11-24 22:10 UTC · original · edited 2026-11-24 22:22 UTC
Confirmed the boot-video fix on an NVIDIA RTX 5070 (driver 610.88), Ryzen 7 7800X3D, Windows, native D3D12, Series X profile. I compared
4e17478with #115 (2ef19e0, also cleanly applied to2119b0e, whose source tree matches4e17478). Both runs used the same saved setup, separately copied warm caches and identical inputs.I captured three bursts of 18 consecutive frames in the animated startup video, starting at host frames 390, 470 and 555. Both sides showed the moving intro in all three bursts. I hashed the decoded RGB pixels. A return means frame N matches N−3 with at least one different image in between.
I also ran the Windows shared-page regressions against main as negative controls: the write-through-another-view and newly-mapped-alias tests both failed with an empty dirty-page result on main and passed with #115. All 33 focused watch, XMem and DirectStorage tests passed with the change. These captures measure frame content, so I’m reporting the reversal fix separately from frame pacing or gameplay FPS. AI-assisted testing.
World checkpoint follow-up. This revision also exited in two runs shortly after entering the prison scene on my RTX 5070. Windows exit code was 0x80000003 in both, without a reported GPU device loss. The last captured frames were 40 and 24 frames past the first 500-draw frame. One used joined rehash runs with descriptor statistics, the other the normal direct-queue play profile. I reran main with the latter profile and the same saved checkpoint and reached +150 frames. Earlier main comparisons reached +500. I haven't isolated which change accounts for the exits. The intro result above stands; I would keep later gameplay stability a separate check. The narrower patch from #63 applied to
4e17478also gave 18 distinct frames in each of the three intro bursts and zero three-frame returns. With that patch, the same checkpoint reached +500 frames on the standard direct-queue play profile.@joroyt on GitHub · 2026-11-24 23:53 UTC · original
A defect in this PR's
protect, with a fix and a failing test: https://github.com/Spexivus/victory-fork/pull/1 (one commit on top of2ef19e0, +49/-1 inwatch.rs).What is wrong.
protectmakes the other views of the pages read-only throughprotect_here, which also notes them clean. The host copies at those other addresses have not taken the pages, so their next check reports nothing written and they keep the bytes from before the write. It needs two host copies of one physical page to show, which the video's textures do not have and the world does: the pages I looked at were shown at five or six title addresses, each with a host copy of its own.The fix. The other views are made read-only and noted protected, not clean;
guardalready reports such a block written at its view's next check.Test.
a_write_is_reported_at_every_checked_viewfails on2ef19e0(left: Some([])at the second view's first check) and passes with the fix; the other tenwatch::tests pass in both.Measured on an RTX 5070 (driver 32.0.16.2124, Windows 11, diag build,
2119b0e+ #156,VICTORY_BVH_BUILDER=1), with a local diagnostic that compares each range a submission declares as written with title memory right after its refresh:2ef19e0)0xff; the blocks are mapped views,PAGE_READONLY, noted copiedSo this PR also matters outside textures: without it the copies of the memory the structure builder works in go stale within a second.
It does not fix #16: the title still crashes 5-15 s after the builder starts with both changes (2 of 2 runs,
+0x4f38ba5/+0x8f92areading0xffffffffffffffff).Not tested: AMD, Intel, Windows 10, the boot video with the fix on top.
AI use: Claude (Anthropic) in OpenCode, on my machine with my own copy of the title; no game data attached.
@SantannaCarlos on GitHub · 2026-11-25 00:44 UTC · original
Measured in the title with joroyt's Spexivus/victory-fork#1 (
0bcc069) on top, and one problem this PR brings that needs fixing before it can go in.RTX 4070,
2119b0e+ this PR (+0bcc069where noted), default mode (no relay, no late wait, no loop limit), a save that loads into the cell, diag build, 15-minute runs. A local diagnostic compares pages the guard reports clean with title memory and counts a page as stale when it still differs at three checks in a row (details on #62).2119b0e0bcc069So with
0bcc069the copies over aliased pages stop going stale, and the room comes back.The problem: the title stops itself in 2 of the 4 runs with this PR (one without
0bcc069at 136 s, one with it at 176 s):int3at+0x23d8f03. In both, the line right before isdstorage: request failed: copying options=0x0 ... destination_size=1600 ... hr=0x800706f8(
ERROR_INVALID_USER_BUFFER: the kernel read into the destination met a read-only page), and in one alsoa destination's physical pages could not be written. Without this PR: no request failure and no stop in either run.Why it happens more with this PR:
kernel_will_writeopens the destination (and with this PR its other views) before the read, but nothing stops a guard check on another thread from protecting those blocks again before the kernel writes them. With every view of guarded pages protected, a raw DirectStorage destination is now often one of them. A fix is to havekernel_will_writehold the blocks open until the read is done (a value whose drop lets them be guarded again, the blocks reported written meanwhile), and the same forReadFile/freadinfiles.rsand the page-destination path. I'm writing that on top of0bcc069with a test that reproduces the failure and will post it here.@oz-stanislav-zhukov on GitHub · 2026-11-25 00:47 UTC · original
Same stop as @SantannaCarlos describes, on another setup, and it comes fast with the speed switches.
Setup: RTX 5060 Ti 16 GB (driver 621.24), i7-14700KF, Windows 10 22H2 (#22 for the Agility SDK), release build, Series X. Tree
4e17478+ #22 + #58 + this PR (2ef19e0) + #410 + #51 (one run also + #206).VICTORY_SHADER_OPT=0 VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_RELAY=1 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024.0xc0000005at+0x541f03freading0x2ee5028a92fat world entry (~frame 1736, ~1 min after launch)int3at+0x23d8f03, ~1.5 min after launchBefore both stops the log has
dstorage: a destination's physical pages could not be written ... its request fails(several,len=12288/16384,pages=1), and before theint3alsodstorage: request failed: copying ... destination_size=17232 ... hr=0x800706f8. So the access violation looks like the same failed read, the title using the unwritten bytes as a pointer instead of stopping.With
VICTORY_LATE_WAIT=3+VICTORY_RELAY=1it came in the first minute or two in every run, which may help test the hold-open fix. Happy to run it here once it is posted.AI-assisted (Claude Code, Claude Opus 5.5); numbers from local logs, no game data attached.
@Revens2 on GitHub · 2026-11-25 01:37 UTC · original
Tested this PR on its own (merged onto current main
2119b0e, release build, RTX 5070, driver 32.0.16.2124, VICTORY_RELAY=2, same key script, 330 s per run, real title).dstorage: request failed: copying ... hr=0x800706f8warning. No device removed, no host ERROR before that.Not verified: whether the boot-video glitch this PR targets is fixed (not looked at in these runs), and whether the dstorage failure is caused by the page guard or only exposed by it.
@SantannaCarlos on GitHub · 2026-11-25 01:51 UTC · original
The fix for the stops above is Spexivus/victory-fork#2, on top of this branch and joroyt's #1 there:
kernel_will_writenow holds the destination (and the other views of its pages) open until the kernel has written. With it, 3 of 3 runs in the cell ran 15 minutes with no DirectStorage request failing and no stop, and the room was drawn in all three; numbers and tests in the PR.@Revens2 on GitHub · 2026-11-25 02:05 UTC · original
Tested this PR merged onto current main (
c96b4f2) against main alone: release build, RTX 5070 12 GB, driver 32.0.16.2124, VICTORY_RELAY=2, same key script, 240 s per run, 3 runs each. A main run and a PR run were always running at the same time (two sessions), so GPU/host memory pressure is a confound.host GPU failure: a host command list did not close (0x8007000E)(out of memory), no device removed before it.dstorage: request failed ... 0x800706f8warning in any of the 6 runs, and no 0x80000003 breakpoint.So I could not reproduce the earlier report (breakpoint after a dstorage failure, only with this PR): on this main both sides fail, in similar proportions, and the PR does not stand out at n=3. The 0xC0000005 run is one sample and I did not look for its cause.
Not verified: whether the boot-video glitch is fixed (not looked at), and whether the failures above also happen with one session at a time.
@SantannaCarlos on GitHub · 2026-11-25 02:40 UTC · original
@UwUCammie @Revens2 thanks, that's the same signature on both platforms (
ERROR_NOACCESSunder Wine,ERROR_INVALID_USER_BUFFERon Windows). The hold-open fix is posted as Spexivus/victory-fork#2. To test this PR with it, the branch isSantannaCarlos/victory-forkfx/kernel-write-held: this PR (2ef19e0) + joroyt's Spexivus/victory-fork#1 (0bcc069) + the fix (90697f1), on4e17478. It merges onto2119b0e; I haven't triedc96b4f2yet.On the 4070, with it, 3 of 3 runs in the cell went 15 minutes with no
request failedline and no stop. A run on Wine that reaches the stop in 2–3 minutes without it would be a good check of theERROR_NOACCESSpath, which I can't run here. If a read comes back pending inReadFile, a warning says so once (that case isn't held yet).@Revens2 on GitHub · 2026-11-25 05:13 UTC · original
Tested in the game, sequentially and alone on the machine (no other title session at the same time), RTX 5070 12 GB, diagnostics build,
VICTORY_RELAY=2, same key script every run, 900 s per run. Base is origin/mainc96b4f2and this PR at2ef19e0.0x80000003at about 130-140 srequest failed: copying ... hr=0x800706f8In both crashed runs the title raised the breakpoint within about 150 ms of the failed request, always an unpacked read (
options=0x0, so thekernel_will_writepath, not a page destination).0x800706f8is ERROR_INVALID_USER_BUFFER. It never appears on main (0 of 3).Probable cause (read from the code, not proven by a trace):
kernel_will_writeopens the guards, then the file read starts. Since this PRprotectalso makes every other view of the same pages read-only, andviews_mappedre-checks guards when a view is mapped, so a guard can be closed again between the open and the kernel's write.Candidate fix, tested on top of this PR: in
into_destination, on the unpacked path, callkernel_will_writeand read again when the read fails with0x800706f8(at most 16 times). Three more solo runs (420 s each): 0 breakpoints, 0 failed requests, median fps 5.17 / 5.15 / 5.25. Only three runs, and the failure was 2 in 3 before, so this is encouraging, not proof. A cleaner fix would keep the guard from re-arming the pages a read is in flight on. Patch:Not verified: whether the boot video glitch this PR targets is fixed (not looked at in these runs);
cargo testwas not run on the patch.@ArturoWolff on GitHub · 2026-11-25 05:58 UTC · original
The shared-page negative control that @ryotdev reported on Windows also distinguishes the two modes on Linux / GE-Proton11-14, using integrated main
8dd30ab, not the standalone PR head. I built the Windows release test binary on Linux (x86_64-pc-windows-gnullvm) and ranwatch::tests::a_write_through_another_view_is_reported_at_the_guarded_onein separate processes with that same executable:VICTORY_VIEW_GUARD0Some([])); assertion failed atwatch.rs:1314as expected.1With defaults, all 12
watch::tests and all 26modules::xmem::/modules::dstorage::tests passed, single-threaded. This checks the actual Wine memory-mapping path without a game or GPU workload. It does not test the title-load failures reported above or establish that the black composite input in #599 came from an aliased page.AI disclosure: Hermes Agent built and ran these tests, checked the negative control, and wrote this comment on ArturoWolff’s behalf.
@Revens2 on GitHub · 2026-11-25 06:20 UTC · original
@SantannaCarlos thanks for the branch and for naming the cause. Tested
fx/kernel-write-heldhere, on our setup, one session at a time.Tree: origin/main
310c6eb+git merge FETCH_HEADof your branch (fx/kernel-write-held: this PR + Spexivus#1 +90697f1). Merge was clean, no conflicts (auto-merge inshadow.rs,texture.rs,dstorage.rs,xmem.rs). Diagnostics build (needed forVICTORY_KEYS),cargo build --lockedonly;cargo testnot run on the merge.Setup: RTX 5070 12 GB, driver 32.0.16.2124, Windows 11,
VICTORY_RELAY=2, same key script as in my earlier table (Enter presses, then W/A/D 0.2 s bursts every 60 s from t=600 s), 3 sequential solo runs of 900 s, nothing else started by us at the same time.c96b4f2)2ef19e0)310c6eb0x80000003dstorage: request failed ... 0x800706f80x8007000E/0xC0000005So the crash I reported on #115 is gone with this branch in our setup: no failed request, no breakpoint, all three runs alive at the end of 900 s, the world (about 5,000 draws per frame in the cell scene) reached at t=126-142 s. The mechanism you describe (a guard re-closing the destination between
kernel_will_writeand the read) matches the 0x800706f8 line we saw right before every breakpoint.One difference I can't explain: median fps is lower (2.5-3.3 against 4.7-5.0). I did not run main on
310c6eb, so the base differs between the columns, and a secondvictoryprocess was visible in the process list once during the third run (not checked whether it was a real concurrent session), so I can't attribute the drop to the branch. I'd call it a question to check, not a finding.Not verified: whether the boot video is fixed with this branch (not looked at); cause of the lower fps; Wine /
ERROR_NOACCESS(not testable here, Windows only); the pending-ReadFilewarning you mention (I did not look for it in the logs); behaviour beyond 15 min; any other GPU. n=3, and the failure rate before was 2 in 3, so this is strong evidence for the signature, not proof that every path is held. Counts only; no game data.AI-assisted (Claude Code); numbers from local run logs.
@Revens2 on GitHub · 2026-11-25 06:28 UTC · original
Update for anyone testing this PR:
mainis now at8dd30ab, which already carries the guard over every view of a page, the "read beside" fix for kernel reads and the retry of failed page-destination reads (see the commit message and README credits: myokex, Joshua Odom, adapting this PR, joroyt's correction and tightfall's part of VIctory #1122). So the two crash signatures measured here (0x80000003afterdstorage: request failed ... 0x800706f8) should be re-tested onmainitself rather than on this branch.We have a solo three-run test of SantannaCarlos's
fx/kernel-write-held(3 of 3 reached 900 s, no failed request) and of this PR alone (1 of 3). We have not yet runmainat8dd30absolo; that is the next comparison, including the lower fps (median 2.5 to 3.3 against 4.8 to 5.0 onc96b4f2) that we could not attribute. We will post the numbers here.@UwUCammie on GitHub · 2026-11-25 01:38 UTC · original · edited 2026-11-25 06:36 UTC
Same stop reproduced on Linux/Wine, with the same log signature, and a clean A/B on the same tree. Counters and offsets only, no game data.
Setup: RX 7900 XT (RADV, Mesa 26.3.1), Wine 11.22 with vkd3d-proton (GE
cae8353ed) + DXVK dxgi, Series X, diag build,VICTORY_PIPELINE_WAIT_MS=24 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_NO_WATCHDOG=1, no relay, no late wait. Tree:myokex/victory-amd(2119b0e+ 7 commits), whosec6dc4d8carries this PR's code.c6dc4d8(8e6d29eand8e6d29e+1daf3fd)dstorage: request failed, no stop; ~330-350 ms/frame; copies ~150 MB/framec6dc4d8(as070df42)The two stops, both on a title worker thread (
+0x2215ecajob loop):0xc0000005at+0x2b8035(read of 0x0) and0xc0000005at+0x43051d(write of 0x0). In the second run the line right before the stop (<1 s earlier) is0x800703e6isERROR_NOACCESS, which is what a read into a page that is read-only at that moment looks like on Wine; it is the same failure as the0x800706f8reported above on Windows (ERROR_INVALID_USER_BUFFER). The first run has 3request failedlines before its stop; the two clean runs have none. So it reads like the failure described above: the destination of a DirectStorage read is protected again by a guard check on another thread before the read lands, and the title uses the unwritten bytes as a pointer.That supports @SantannaCarlos's diagnosis and the hold-open fix (keeping the destination's blocks open until the read is done, for
kernel_will_write,ReadFile/freadand the page-destination path). Happy to run it here on Linux once it is posted; this setup reaches the crash in 2-3 minutes, so a 6-minute run is a decent test.@SantannaCarlos on GitHub · 2026-11-25 07:30 UTC · original
@Revens2 thanks for the runs. On the fps question, the same base on the 4070 (default settings of
310c6eb, a save at the cell, 15-minute runs, median ms per world frame after the load):310c6ebSo most of the drop you saw is the base:
310c6ebalone runs at about 420–500 ms here, wherec96b4f2ran at about 240–440. Guarding every view of a page costs on top of that, roughly 5–15% in the median on this card, about the same for this branch and #555.Main has since taken the view guard (
8dd30ab, via myokex's port) with reading beside for DirectStorage andfread, so this branch is superseded. Not covered there: our own kernel writes into title memory (the copy-back and title buffer copies), which have the same window betweenkernel_will_writeand the write; with direct writes on, a piece that meets a re-guarded page is dropped without a word. I'm counting whether that happens in the title on current main and will report it on its own.@SantannaCarlos on GitHub · 2026-11-25 07:45 UTC · original
Follow-up on the remaining case: on current main (
a26859f, RTX 4070, default settings, the cell, 15 minutes) a counter on copy-back pieces that fail on a committed read-only page found none, and the stale-page scan found no stale aliased copy; the walls were drawn. So the window for our own kernel writes stays theoretical here; nothing to change unless it shows up elsewhere.@Revens2 on GitHub · 2026-11-25 07:49 UTC · original
@SantannaCarlos thanks for the base-vs-branch table and for the follow-up on
a26859f: that answers the fps question we left open. Here are the solo numbers on currentmain, as promised.Tree:
mainata26859f, no extra patch, diagnostics build (needed forVICTORY_KEYS). RTX 5070 12 GB, driver 32.0.16.2124, Windows 11,VICTORY_RELAY=2, same key script as in my earlier tables (Enter presses, then W/A/D 0.2 s bursts every 60 s from t=600 s). Three sequential solo runs of 900 s, one game session at a time.c96b4f2(earlier)310c6eb+fx/kernel-write-held(earlier)maina26859fr1 / r2 / r30x80000003/0xC0000005/0x8007000Edstorage: request failedThe cell scene draws about 5,000 draws per frame in all three runs (max 7,300-9,600 in transitions). A late capture of run 1 shows the cell and a guard in the doorway, rendered normally.
Fps attribution: the 2.5-3.3 we measured on
310c6eb(with the branch) is not whatmaingives now:a26859fis at 4.0-4.2. Compared withc96b4f2(4.8-5.0),mainis still about 15-20% slower. That is the same order as the 5-15% you measured for guarding every view of a page, so your explanation (most of the drop is the310c6ebbase, the rest the view guard) fits our numbers. What we did not run:310c6ebalone, so we cannot split base cost from branch cost ourselves, and a different GPU than yours, so absolute ms differ. One caveat: acargo testof another agent was running on this machine during part of these runs (not a game session); its effect on fps is not verified.Not verified: the boot video glitch (not looked at); Wine /
ERROR_NOACCESS; behaviour beyond 15 min; any GPU other than the 5070. n=3.So on
mainthe0x80000003after0x800706f8signature we reported on this PR did not show up in 3 of 3 solo runs, consistent with the guard now being inmain. Counts and medians only; no game data.AI-assisted (Claude Code); numbers from local run logs.
@Cuebert on GitHub · 2026-11-26 13:48 UTC · original
Could re-arming one view preserve the other view’s pending dirty observation? At
2ef19e0, a write clears both views’ clean bits. On the next refresh of A,protect_herealso marks B clean, but that refresh only journals pages in A’s range. B’s next refresh can therefore miss the write.Could the regression prime two independent texture consumers on separate views of the same registered section page, write once, and check that both consumers observe the change in either refresh order?
@ArturoWolff on GitHub · 2026-11-26 14:52 UTC · original
Two independent texture consumers on integrated main — RTX 4060 / Proton
Follow-up to Cuebert's two-consumer request: I checked the current implementation on
58de9bf4c367d4e27f6dd5da523ca2f68951bc77. This includes the integrated view-guard work at8dd30ab472697c47b141c273c2a00f8ce1c00520discussed above. I tested main, not the standalone2ef19e0PR head, with only an added test module and its registration.The same Windows-target
victory-gpudiagnostics test executable was used in two fresh, matching game-free Wine prefixes (hash-every-check first, default guard second). Linux, RTX 4060 8 GB, NVIDIA 620.73.04, GE-Proton 11-14 / Wine 11.0 Staging, vkd3d-proton71cae091b06571e; Rust 1.98.1,x86_64-pc-windows-gnullvm, locked dependencies,diagprofile. Each run started with an empty per-run driver cache.The fixture uses one fully mapped, ordinary 64 KiB linear RGBA8 texture's source bytes with two independent views and two separate staging buffers and D3D12 textures. It exercises the real
Staging::refresh_nowwith normal announced CPU updates. After the initial fill, it covers both writer choices crossed with both refresh orders, with an unchanged control after each fill/update. All checks are outside both consumers' periodic hash turns. Fenced D3D12 copies through the two separate textures then return the entire image for comparison with independently generated expected bytes.VICTORY_TEXTURE_GUARD=0)refresh_nowThe build also exited zero. No device loss, external memory guard stop, host OOM kill or kernel GPU fault was observed in the completed scope. The default path refreshed both consumers on every update and preserved both on every unchanged check. For this ordinary two-consumer case, the current integrated implementation already gives the requested result; I would not revive the historical patch just to address it.
This is byte-level correctness evidence for the stated fixture, not a title performance benchmark: the 50% change in source bytes read is for this chosen sequence, not a measured frame-time gain. It does not qualify simultaneous refreshes, partial/streaming textures, asynchronous kernel writes or DirectStorage, the original boot video, or gameplay stability. No title executable, game data, screenshots or controller input were used. Applying the same correctness oracle to the separate parallel-refresh work would be a useful follow-up.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol Max).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.