GPU saved-page reuse with a 4 MiB idle limit #3720

Open
lmouz823-lang wants to merge 1 commit from upstream-pr/3720 into main
lmouz823-lang commented 2026-11-28 11:16:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lmouz823-lang on 2026-11-28T11:16:50Z.


Summary

Reuse the 64 KiB pre-write snapshots in watch::Saved through an exclusive SavedPage owner. The idle pool holds at most 64 pages, or 4 MiB of page payload. Live pages stay owned by their tracker or the marked copy-back consumer.

Changed::save
  SavedPage::new     take an idle page or allocate an initialized page
  read_into         capture the full pre-write page under the Saved lock
  Saved.bytes       hold the exclusive owner
Tracked::saved      move the owner to the consumer
SavedPage::drop     return storage to the bounded idle pool or release it

This implements the returned-buffer follow-up described in #3262. The scope is Changed::save page buffers. Coordination claim

The kernel read runs under the same arming/first-save lock. Cold page allocation, the kernel read and excess-page deallocation run outside the pool lock. taken, disarm, tracker destruction and consumer early returns release their owners through Drop. The submitted diff is one file, 189 additions and 3 deletions.

Evidence

Windows 11 build 26200, Intel Core i9-14900HX, 64 GiB installed RAM, NVIDIA GeForce RTX 4060 Laptop GPU with driver 32.0.16.1088, Rust 1.98.1 MSVC, release profile, locked dependencies. Base 63bcca43c6a00a758510398fa43096ce7e4f7df0. Validated source commit abd2895ce98d5cdfd7dee6e35e5b86eede2107f7. Submitted watch.rs SHA256 21c07dadf155201deffdd92b879deed7c36355199e64a062b2d98912acaf8d62.

Synthetic cost comparison

I ran 12 alternating A/B and B/A process pairs with the same appended harness. Each process uses 3 warm-up rounds and 20 measured rounds for each workload. Timing covers actual guarded writes, snapshot consumption, owner drop and disarm. Tracker take/arm happens before the timed window. For each workload, the table reports the median across the 12 per-process round-time medians. Allocation and process-page-fault columns are medians of per-process totals across the 20 measured rounds.

Pages per batch Main median ms/round With pool median ms/round Change 64 KiB allocations Process page faults
64, warm working set fits the idle limit 2.2026 0.4903 -77.7% 1280 -> 0 20470 -> 0
256, exceeds the idle limit 9.2286 7.6505 -17.1% 5120 -> 3840 81905 -> 61145

The harness counts Rust allocation layouts of exactly 64 KiB and delegates every operation to System. It records Windows process page faults. The baseline prints both workloads and intentionally fails its final warm-zero-allocation assertion with exit 101. The pooled version passes. These are synthetic memory-tracking measurements. Gameplay frame-time impact is unmeasured.

The benchmark source and binaries retain their actual hashes. A later Clippy correction moved a SAFETY comment inside an assertion macro in a new regression test. Independent comparison confirmed that this is the only source difference from the archived benchmark production code. The final submitted source was separately package-cleaned, rebuilt and rerun.

Final acceptance

The final default-feature build compiled victory-gpu in 15.40 seconds, and the diagnostics build in 19.21 seconds.

Selection Result
Original first-write pre-image exact and four added exact regressions Each ran 1 test and passed, 0 ignored
watch::tests::, default and diagnostics 19 passed each
shadow::, default NVIDIA, diagnostics NVIDIA, diagnostics WARP 10 passed each
Additional default/diagnostics parallel watch runs 3 runs per feature mode, each 19 passed
Full GPU crate, default NVIDIA 233 passed, 2 failed, 1 ignored
Full GPU crate, diagnostics NVIDIA 248 passed, the same 2 failed, 1 ignored
Full GPU crate, diagnostics WARP 250 passed, 0 failed, 1 ignored

The two NVIDIA failures are descriptor::host::tests::dynamic_slots_are_held_until_released and memory::tests::lists_share_a_table_and_copies_keep_their_views. I also built an independent, completely unmodified checkout of the exact main revision. Each exact test reproduces the same assertion and exit 101 there, after a fresh 56.82-second build. They are the descriptor-heap-cap assumptions reported in #3178.

The one ignored case is object::tests::benchmark_private_data_release, declared as a synthetic release benchmark requiring --release --ignored --nocapture. It was omitted from the final crate runs. Gameplay, AMD hardware, other operating systems and the full workspace suite were outside this validation.

The four added tests cover detached owners across tracker cleanup, two trackers and cross-page refresh, failed partial reads followed by a complete snapshot, idle capacity/live-owner uniqueness, and four concurrent guarded writers. A separate isolated consumer probe verified the normal marked copy-back early return after a partial decommit and the page's subsequent return to the pool. Device/LUID and consumer probes established actual NVIDIA and WARP execution. Those temporary probes were removed and shadow.rs restored byte-for-byte before the final rebuild.

Two targeted controls detected failure to recycle dropped buffers and publication after a failed read. The original valid-page test continued to pass under those deliberate mutations. The mutations were removed before final acceptance.

Default and diagnostics all-target checks and Clippy with -D warnings, the 191-file asset-policy check, new-code formatting, git diff --check and forward/reverse patch checks passed. Whole-file Rustfmt exits 1 on both main and this source, with the same 39 pre-existing hunks and the same ordered formatting edits, 199 added and 46 removed lines.

cargo test --release --locked -p victory-gpu --lib watch::tests:: -- --nocapture --test-threads=1
cargo test --release --locked -p victory-gpu --lib shadow:: -- --nocapture --test-threads=1
cargo test --release --locked -p victory-gpu --lib --features diagnostics -- --nocapture --test-threads=1

For the WARP diagnostics run, set VICTORY_D3D12_WARP=1. Clear it for native hardware. The default and diagnostics all-target Clippy commands use the same feature selections.

Temporary synthetic cost harness and reproduction

Append the following block to watch.rs in two isolated checkouts, one at the base revision and one with this patch. Use separate Cargo target directories. Build each with cargo test --release --locked -p victory-gpu --lib --no-run and retain its executable separately. Restore the source after collecting the benchmark binaries.

Run each executable with the arguments below. Alternate baseline/pool and pool/baseline order for 12 pairs. The harness prints all 20 sorted timing samples for each workload. Use the average of the two middle samples as each process median, then the median across its 12 processes.

--ignored --exact watch::saved_pool_cost::saved_page_reuse_benchmark --nocapture --test-threads=1
// Temporary cost harness, retained outside the source tree for reproduction.
#[cfg(test)]
mod saved_pool_cost {
    use super::*;
    use std::alloc::{GlobalAlloc, Layout, System};
    use std::sync::atomic::AtomicBool;
    use std::time::Instant;

    struct Counter;
    static COUNTING: AtomicBool = AtomicBool::new(false);
    static ALLOCATIONS: AtomicU64 = AtomicU64::new(0);
    static DEALLOCATIONS: AtomicU64 = AtomicU64::new(0);

    #[global_allocator]
    static ALLOCATOR: Counter = Counter;

    // SAFETY: every allocation operation is delegated unchanged to System.
    unsafe impl GlobalAlloc for Counter {
        unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
            if COUNTING.load(Ordering::Relaxed) && layout.size() == PAGE {
                ALLOCATIONS.fetch_add(1, Ordering::Relaxed);
            }
            // SAFETY: the caller supplies a valid allocation layout.
            unsafe { System.alloc(layout) }
        }

        unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
            if COUNTING.load(Ordering::Relaxed) && layout.size() == PAGE {
                ALLOCATIONS.fetch_add(1, Ordering::Relaxed);
            }
            // SAFETY: the caller supplies a valid allocation layout.
            unsafe { System.alloc_zeroed(layout) }
        }

        unsafe fn realloc(&self, pointer: *mut u8, layout: Layout, size: usize) -> *mut u8 {
            if COUNTING.load(Ordering::Relaxed) && size == PAGE {
                ALLOCATIONS.fetch_add(1, Ordering::Relaxed);
            }
            // SAFETY: the pointer and old layout are forwarded unchanged.
            unsafe { System.realloc(pointer, layout, size) }
        }

        unsafe fn dealloc(&self, pointer: *mut u8, layout: Layout) {
            if COUNTING.load(Ordering::Relaxed) && layout.size() == PAGE {
                DEALLOCATIONS.fetch_add(1, Ordering::Relaxed);
            }
            // SAFETY: the pointer and its allocation layout are forwarded unchanged.
            unsafe { System.dealloc(pointer, layout) }
        }
    }

    fn faults() -> u32 {
        use windows_sys::Win32::System::ProcessStatus::{
            GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS,
        };
        use windows_sys::Win32::System::Threading::GetCurrentProcess;
        // SAFETY: an output structure initialized by GetProcessMemoryInfo.
        let mut counters: PROCESS_MEMORY_COUNTERS = unsafe { std::mem::zeroed() };
        // SAFETY: a current-process handle and an output buffer of the stated size.
        assert_ne!(
            unsafe {
                GetProcessMemoryInfo(
                    GetCurrentProcess(),
                    &mut counters,
                    size_of_val(&counters) as u32,
                )
            },
            0
        );
        counters.PageFaultCount
    }

    #[test]
    #[ignore = "explicit synthetic saved-page allocation and timing measurement"]
    fn saved_page_reuse_benchmark() {
        let mut warm_small_allocations = 0;
        for pages in [64, 256] {
            let p = super::tests::pool(pages);
            // SAFETY: this test owns the writable allocation.
            unsafe { std::slice::from_raw_parts_mut(p as *mut u8, pages * PAGE) }.fill(0x33);
            let tracker = track_copy(p, pages * PAGE, true).expect("write-watched pages");
            let (mut allocations, mut deallocations, mut page_faults) = (0, 0, 0);
            let mut elapsed_ns = Vec::with_capacity(20);
            for round in 0..23 {
                tracker.take(p, p + pages * PAGE);
                tracker.arm(p, p + pages * PAGE);
                let start_faults = faults();
                ALLOCATIONS.store(0, Ordering::Relaxed);
                DEALLOCATIONS.store(0, Ordering::Relaxed);
                COUNTING.store(true, Ordering::Relaxed);
                let start = Instant::now();
                for page in 0..pages {
                    // SAFETY: our page is guarded; the real handler saves its old bytes.
                    unsafe { ((p + page * PAGE) as *mut u8).write_volatile(round as u8) };
                }
                let kept: Vec<_> = (0..pages)
                    .map(|page| {
                        tracker
                            .saved(p / PAGE + page)
                            .expect("first-write snapshot")
                    })
                    .collect();
                let previous = if round == 0 { 0x33 } else { (round - 1) as u8 };
                assert!(
                    kept.iter()
                        .all(|bytes| bytes[0] == previous && bytes[PAGE - 1] == 0x33)
                );
                drop(kept);
                tracker.disarm();
                let duration = start.elapsed().as_nanos();
                COUNTING.store(false, Ordering::Relaxed);
                let changed_faults = faults().wrapping_sub(start_faults);
                if round >= 3 {
                    allocations += ALLOCATIONS.load(Ordering::Relaxed);
                    deallocations += DEALLOCATIONS.load(Ordering::Relaxed);
                    page_faults += u64::from(changed_faults);
                    elapsed_ns.push(duration);
                }
            }
            elapsed_ns.sort_unstable();
            println!(
                "SAVED_POOL_BENCH pages={pages} rounds=20 allocations={allocations} deallocations={deallocations} page_faults={page_faults} median_ns={} total_ns={}",
                (elapsed_ns[9] + elapsed_ns[10]) / 2,
                elapsed_ns.iter().sum::<u128>()
            );
            println!("SAVED_POOL_SAMPLES pages={pages} ns={elapsed_ns:?}");
            if pages == 64 {
                warm_small_allocations = allocations;
            }
            drop(tracker);
            super::tests::free(p);
        }
        assert_eq!(
            warm_small_allocations, 0,
            "warm saves still allocate a fresh 64 KiB snapshot per page"
        );
    }
}

Merge Danger

Door Two-way. Reverting restores per-save allocation.

Blast Radius Tracking. This runs in guarded first-write handling and marked copy-back. The exclusive owner protects the pre-write comparison data while consumers run. Idle page payload is capped at 4 MiB.

AI assistance from Codex covered implementation, tests, execution and this report. Independent Standards and Spec reviews checked the frozen source and evidence.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5539555205 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3720). Originally posted by [lmouz823-lang](https://github.com/lmouz823-lang) on 2026-11-28T11:16:50Z. --- ## Summary Reuse the 64 KiB pre-write snapshots in `watch::Saved` through an exclusive `SavedPage` owner. The idle pool holds at most 64 pages, or 4 MiB of page payload. Live pages stay owned by their tracker or the marked copy-back consumer. ```text Changed::save SavedPage::new take an idle page or allocate an initialized page read_into capture the full pre-write page under the Saved lock Saved.bytes hold the exclusive owner Tracked::saved move the owner to the consumer SavedPage::drop return storage to the bounded idle pool or release it ``` This implements the returned-buffer follow-up described in #3262. The scope is `Changed::save` page buffers. [Coordination claim](https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7237711453) The kernel read runs under the same arming/first-save lock. Cold page allocation, the kernel read and excess-page deallocation run outside the pool lock. `taken`, `disarm`, tracker destruction and consumer early returns release their owners through `Drop`. The submitted diff is one file, 189 additions and 3 deletions. ## Evidence Windows 11 build 26200, Intel Core i9-14900HX, 64 GiB installed RAM, NVIDIA GeForce RTX 4060 Laptop GPU with driver 32.0.16.1088, Rust 1.98.1 MSVC, release profile, locked dependencies. Base `63bcca43c6a00a758510398fa43096ce7e4f7df0`. Validated source commit `abd2895ce98d5cdfd7dee6e35e5b86eede2107f7`. Submitted `watch.rs` SHA256 `21c07dadf155201deffdd92b879deed7c36355199e64a062b2d98912acaf8d62`. ### Synthetic cost comparison I ran 12 alternating A/B and B/A process pairs with the same appended harness. Each process uses 3 warm-up rounds and 20 measured rounds for each workload. Timing covers actual guarded writes, snapshot consumption, owner drop and disarm. Tracker take/arm happens before the timed window. For each workload, the table reports the median across the 12 per-process round-time medians. Allocation and process-page-fault columns are medians of per-process totals across the 20 measured rounds. | Pages per batch | Main median ms/round | With pool median ms/round | Change | 64 KiB allocations | Process page faults | | --- | --- | --- | --- | --- | --- | | 64, warm working set fits the idle limit | 2.2026 | 0.4903 | -77.7% | 1280 -> 0 | 20470 -> 0 | | 256, exceeds the idle limit | 9.2286 | 7.6505 | -17.1% | 5120 -> 3840 | 81905 -> 61145 | The harness counts Rust allocation layouts of exactly 64 KiB and delegates every operation to `System`. It records Windows process page faults. The baseline prints both workloads and intentionally fails its final warm-zero-allocation assertion with exit 101. The pooled version passes. These are synthetic memory-tracking measurements. Gameplay frame-time impact is unmeasured. The benchmark source and binaries retain their actual hashes. A later Clippy correction moved a SAFETY comment inside an assertion macro in a new regression test. Independent comparison confirmed that this is the only source difference from the archived benchmark production code. The final submitted source was separately package-cleaned, rebuilt and rerun. ### Final acceptance The final default-feature build compiled `victory-gpu` in 15.40 seconds, and the diagnostics build in 19.21 seconds. | Selection | Result | | --- | --- | | Original first-write pre-image exact and four added exact regressions | Each ran 1 test and passed, 0 ignored | | `watch::tests::`, default and diagnostics | 19 passed each | | `shadow::`, default NVIDIA, diagnostics NVIDIA, diagnostics WARP | 10 passed each | | Additional default/diagnostics parallel watch runs | 3 runs per feature mode, each 19 passed | | Full GPU crate, default NVIDIA | 233 passed, 2 failed, 1 ignored | | Full GPU crate, diagnostics NVIDIA | 248 passed, the same 2 failed, 1 ignored | | Full GPU crate, diagnostics WARP | 250 passed, 0 failed, 1 ignored | The two NVIDIA failures are `descriptor::host::tests::dynamic_slots_are_held_until_released` and `memory::tests::lists_share_a_table_and_copies_keep_their_views`. I also built an independent, completely unmodified checkout of the exact main revision. Each exact test reproduces the same assertion and exit 101 there, after a fresh 56.82-second build. They are the descriptor-heap-cap assumptions reported in #3178. The one ignored case is `object::tests::benchmark_private_data_release`, declared as a synthetic release benchmark requiring `--release --ignored --nocapture`. It was omitted from the final crate runs. Gameplay, AMD hardware, other operating systems and the full workspace suite were outside this validation. The four added tests cover detached owners across tracker cleanup, two trackers and cross-page refresh, failed partial reads followed by a complete snapshot, idle capacity/live-owner uniqueness, and four concurrent guarded writers. A separate isolated consumer probe verified the normal marked copy-back early return after a partial decommit and the page's subsequent return to the pool. Device/LUID and consumer probes established actual NVIDIA and WARP execution. Those temporary probes were removed and `shadow.rs` restored byte-for-byte before the final rebuild. Two targeted controls detected failure to recycle dropped buffers and publication after a failed read. The original valid-page test continued to pass under those deliberate mutations. The mutations were removed before final acceptance. Default and diagnostics all-target checks and Clippy with `-D warnings`, the 191-file asset-policy check, new-code formatting, `git diff --check` and forward/reverse patch checks passed. Whole-file Rustfmt exits 1 on both main and this source, with the same 39 pre-existing hunks and the same ordered formatting edits, 199 added and 46 removed lines. ```powershell cargo test --release --locked -p victory-gpu --lib watch::tests:: -- --nocapture --test-threads=1 cargo test --release --locked -p victory-gpu --lib shadow:: -- --nocapture --test-threads=1 cargo test --release --locked -p victory-gpu --lib --features diagnostics -- --nocapture --test-threads=1 ``` For the WARP diagnostics run, set `VICTORY_D3D12_WARP=1`. Clear it for native hardware. The default and diagnostics all-target Clippy commands use the same feature selections. <details> <summary>Temporary synthetic cost harness and reproduction</summary> Append the following block to `watch.rs` in two isolated checkouts, one at the base revision and one with this patch. Use separate Cargo target directories. Build each with `cargo test --release --locked -p victory-gpu --lib --no-run` and retain its executable separately. Restore the source after collecting the benchmark binaries. Run each executable with the arguments below. Alternate baseline/pool and pool/baseline order for 12 pairs. The harness prints all 20 sorted timing samples for each workload. Use the average of the two middle samples as each process median, then the median across its 12 processes. ```text --ignored --exact watch::saved_pool_cost::saved_page_reuse_benchmark --nocapture --test-threads=1 ``` ```rust // Temporary cost harness, retained outside the source tree for reproduction. #[cfg(test)] mod saved_pool_cost { use super::*; use std::alloc::{GlobalAlloc, Layout, System}; use std::sync::atomic::AtomicBool; use std::time::Instant; struct Counter; static COUNTING: AtomicBool = AtomicBool::new(false); static ALLOCATIONS: AtomicU64 = AtomicU64::new(0); static DEALLOCATIONS: AtomicU64 = AtomicU64::new(0); #[global_allocator] static ALLOCATOR: Counter = Counter; // SAFETY: every allocation operation is delegated unchanged to System. unsafe impl GlobalAlloc for Counter { unsafe fn alloc(&self, layout: Layout) -> *mut u8 { if COUNTING.load(Ordering::Relaxed) && layout.size() == PAGE { ALLOCATIONS.fetch_add(1, Ordering::Relaxed); } // SAFETY: the caller supplies a valid allocation layout. unsafe { System.alloc(layout) } } unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { if COUNTING.load(Ordering::Relaxed) && layout.size() == PAGE { ALLOCATIONS.fetch_add(1, Ordering::Relaxed); } // SAFETY: the caller supplies a valid allocation layout. unsafe { System.alloc_zeroed(layout) } } unsafe fn realloc(&self, pointer: *mut u8, layout: Layout, size: usize) -> *mut u8 { if COUNTING.load(Ordering::Relaxed) && size == PAGE { ALLOCATIONS.fetch_add(1, Ordering::Relaxed); } // SAFETY: the pointer and old layout are forwarded unchanged. unsafe { System.realloc(pointer, layout, size) } } unsafe fn dealloc(&self, pointer: *mut u8, layout: Layout) { if COUNTING.load(Ordering::Relaxed) && layout.size() == PAGE { DEALLOCATIONS.fetch_add(1, Ordering::Relaxed); } // SAFETY: the pointer and its allocation layout are forwarded unchanged. unsafe { System.dealloc(pointer, layout) } } } fn faults() -> u32 { use windows_sys::Win32::System::ProcessStatus::{ GetProcessMemoryInfo, PROCESS_MEMORY_COUNTERS, }; use windows_sys::Win32::System::Threading::GetCurrentProcess; // SAFETY: an output structure initialized by GetProcessMemoryInfo. let mut counters: PROCESS_MEMORY_COUNTERS = unsafe { std::mem::zeroed() }; // SAFETY: a current-process handle and an output buffer of the stated size. assert_ne!( unsafe { GetProcessMemoryInfo( GetCurrentProcess(), &mut counters, size_of_val(&counters) as u32, ) }, 0 ); counters.PageFaultCount } #[test] #[ignore = "explicit synthetic saved-page allocation and timing measurement"] fn saved_page_reuse_benchmark() { let mut warm_small_allocations = 0; for pages in [64, 256] { let p = super::tests::pool(pages); // SAFETY: this test owns the writable allocation. unsafe { std::slice::from_raw_parts_mut(p as *mut u8, pages * PAGE) }.fill(0x33); let tracker = track_copy(p, pages * PAGE, true).expect("write-watched pages"); let (mut allocations, mut deallocations, mut page_faults) = (0, 0, 0); let mut elapsed_ns = Vec::with_capacity(20); for round in 0..23 { tracker.take(p, p + pages * PAGE); tracker.arm(p, p + pages * PAGE); let start_faults = faults(); ALLOCATIONS.store(0, Ordering::Relaxed); DEALLOCATIONS.store(0, Ordering::Relaxed); COUNTING.store(true, Ordering::Relaxed); let start = Instant::now(); for page in 0..pages { // SAFETY: our page is guarded; the real handler saves its old bytes. unsafe { ((p + page * PAGE) as *mut u8).write_volatile(round as u8) }; } let kept: Vec<_> = (0..pages) .map(|page| { tracker .saved(p / PAGE + page) .expect("first-write snapshot") }) .collect(); let previous = if round == 0 { 0x33 } else { (round - 1) as u8 }; assert!( kept.iter() .all(|bytes| bytes[0] == previous && bytes[PAGE - 1] == 0x33) ); drop(kept); tracker.disarm(); let duration = start.elapsed().as_nanos(); COUNTING.store(false, Ordering::Relaxed); let changed_faults = faults().wrapping_sub(start_faults); if round >= 3 { allocations += ALLOCATIONS.load(Ordering::Relaxed); deallocations += DEALLOCATIONS.load(Ordering::Relaxed); page_faults += u64::from(changed_faults); elapsed_ns.push(duration); } } elapsed_ns.sort_unstable(); println!( "SAVED_POOL_BENCH pages={pages} rounds=20 allocations={allocations} deallocations={deallocations} page_faults={page_faults} median_ns={} total_ns={}", (elapsed_ns[9] + elapsed_ns[10]) / 2, elapsed_ns.iter().sum::<u128>() ); println!("SAVED_POOL_SAMPLES pages={pages} ns={elapsed_ns:?}"); if pages == 64 { warm_small_allocations = allocations; } drop(tracker); super::tests::free(p); } assert_eq!( warm_small_allocations, 0, "warm saves still allocate a fresh 64 KiB snapshot per page" ); } } ``` </details> ## Merge Danger **Door** Two-way. Reverting restores per-save allocation. **Blast Radius** Tracking. This runs in guarded first-write handling and marked copy-back. The exclusive owner protects the pre-write comparison data while consumers run. Idle page payload is capped at 4 MiB. AI assistance from Codex covered implementation, tests, execution and this report. Independent Standards and Spec reviews checked the frozen source and evidence.
cloph-dsp commented 2026-11-28 11:38:22 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-28T11:38:22Z.


Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):

  • PR #3720 at head abd2895ce98d5cdfd7dee6e35e5b86eede2107f7, base/parent 63bcca43c6a00a758510398fa43096ce7e4f7df0.
  • cargo test --locked -p victory-gpu --lib -- watch::tests::detached_saved_pages_keep_their_bytes_after_tracker_cleanup --exact --test-threads=1 --quiet → 1 passed, 0 failed, 235 filtered, exit 0 (2 pre-existing warnings in the victory-gpu lib test build).
  • git grep -F for the test name on the base returned no match (test is new on this PR); git diff --check 63bcca4 HEAD clean (1 file, +189/-3).
  • Used a per-worktree CARGO_TARGET_DIR (never shared) with CARGO_BUILD_JOBS=2.
  • Only the named synthetic test was replayed; full workspace suite and clippy were not run locally.
  • GPU/driver: N/A (CPU-only saved-page test). No game data, assets, extracted shaders, DRM or decrypt involved.

AI-assisted (Hy4 flash).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7238684118 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3720#issuecomment-7238684118). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-28T11:38:22Z. --- Independent local verification (Windows, Rust 1.100.0/MSVC, no game data): - PR #3720 at head `abd2895ce98d5cdfd7dee6e35e5b86eede2107f7`, base/parent `63bcca43c6a00a758510398fa43096ce7e4f7df0`. - `cargo test --locked -p victory-gpu --lib -- watch::tests::detached_saved_pages_keep_their_bytes_after_tracker_cleanup --exact --test-threads=1 --quiet` → 1 passed, 0 failed, 235 filtered, exit 0 (2 pre-existing warnings in the `victory-gpu` lib test build). - `git grep -F` for the test name on the base returned no match (test is new on this PR); `git diff --check 63bcca4 HEAD` clean (1 file, +189/-3). - Used a per-worktree `CARGO_TARGET_DIR` (never shared) with `CARGO_BUILD_JOBS=2`. - Only the named synthetic test was replayed; full workspace suite and clippy were not run locally. - GPU/driver: N/A (CPU-only saved-page test). No game data, assets, extracted shaders, DRM or decrypt involved. AI-assisted (Hy4 flash).
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/3720:upstream-pr/3720'
git switch 'upstream-pr/3720'

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/3720'
git switch 'upstream-pr/3720'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3720'
git switch 'upstream-pr/3720'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3720'
git switch 'main'
git merge --squash 'upstream-pr/3720'
git switch 'main'
git merge --ff-only 'upstream-pr/3720'
git switch 'main'
git merge 'upstream-pr/3720'
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
Marvisak/VIctory!3720
No description provided.