[pr-fix][memory] Windows tile by tile by adapter and class; failed materialisation is retried #221
Loading…
Reference in a new issue
No description provided.
Delete branch "hingeowl:pr/tile-by-tile-windows"
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?
Re-submitted from the previous CodeFloe repository (original commit
9ea701e019e4663ec541eb8ccfcce6e186bd1693, preserving original authorship by vilaris) so it is not lost after the forge move.What it changes
Decides whether a window in PC memory is held tile by tile in
darner-gpu(pagebuf::windows_direct) based on adapter capabilities and class, and hardens direct-window failure paths:Notes
main(f3840d7).mainhas not been run yet.CHANGES NEEDED
Review of
2644ff597.a_window_written_straight_into_its_tiles_round_trip_in_mode_threesnapshots the process-globalSTATS[25]counter and expects it not to change (crates/darner-gpu/src/shadow/page_buffer_tests.rs:365-399). Running the ignoredpage_buffer_testsselector with its default parallelism failed this assertion (observed delta: 393,472 bytes); the test passes in isolation and when the selector is serialized. Other concurrent GPU tests can update the same global counter, making this test order-dependent. Please serialize the tests sharing this counter or make the assertion use per-test accounting.Windows validation: G1 PASS; G2 PASS;
cargo xtask policyPASS (555 files ok); serialized ignored page-buffer tests — 6 passed, 0 failed (two mode-specific cases logged as skipped); ignoredpagebuftests — 5 passed, 0 failed. The default-parallel page-buffer selector had the failure described above.Not run in-game.
AI-assisted: yes (GitHub Copilot, Auto mode).
Replay A/B on RTX 5070 Ti: no measurable difference with DARNER_PAGE_BUFFERS=3
Measured
2644ff5977merged on top of release v2026.12.03.02, against the plain release, on a ~6.5 minute replay route (same save, recorded controller input) through a cutscene, a scene cut and a stretch of free play. The launcher's settings on this bench includeDARNER_PAGE_BUFFERS=3, so the direct-window path this PR changes was in use in both builds.Crashes: none in any run (no device loss, no host GPU failure). Fps means are within the release's own run-to-run spread, so: no measurable difference on this route. With only 3 release runs, that spread is not well known yet; differences under ~2-3% can't be resolved here.
Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB RAM, Windows 11;
scripts\play-nvidia.ps1 -Build release(Series X, 1440p native, DLSS Quality, no frame generation, fullscreen, no fps cap). Each build had one unmeasured warm-up run first. The release base excludes its first measured run, which was still compiling shaders (about 3,300 compiles during the route).Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.
Fixed in
ec83a00: serialized the GPU tests incrates/darner-gpu/src/shadow/page_buffer_tests.rswith a module-levelSERIAL: Mutex<()>so sibling tests cannot perturb process-globalSTATS[..]snapshots when run with default parallelism.Validation on
ec83a00:DARNER_ADAPTER=4090 DARNER_PAGE_BUFFERS=3 cargo test -p darner-gpu --lib --locked -- page_buffer_tests --ignored --nocapture(default parallelism) — 6 passed, 0 failed.cargo clippy -p darner-gpu --all-targets --all-features --locked -- -D warnings— passed.Ready for re-review.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.