Repository navigation
Conversation
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Memory guard batching (docs+gpu): perf rework of the guard path, pairs with #1885's loop-header work.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mercuryVM
left a comment
There was a problem hiding this comment.
Tested a175fff on Windows 11, RTX 5070, MSVC:
cargo test -p victory-gpupasses on the head, including the new sweep tests andoverlapping_kernel_writers_keep_pages_open_until_both_finish. The 2 other failures there (dynamic heap slots, memory table) also fail on main on this host.- Merged into our fork: workspace tests and clippy (both configs) as on main.
The sweep is right. With pages and spans sorted, a page is dropped exactly when some span that starts at or before it ends past it, which is what the max-end prefix gives. Skipping empty spans and keeping the linear check for small inputs is sensible.
One behavior change to note: the result is now sorted and deduplicated, where the old filter kept the caller's order. Its one caller only builds a set of pages from it, so this is fine today.
AI-assisted (Claude Code).
|
Automated triage for the maintainers. Needs work. The verdict is unchanged. Since the last review (
The code itself is unchanged: The benefit is still not shown. @CocoBeans64's native run (RX 6800 XT, What would change the verdict: the guard counters this code affects, before and after, from one session of this PR alone. The CI: passing. Generated by Claude Code |
|
Native Windows run as asked, on Windows 10 22H2 (19045), RX 6800 XT (driver 32.0.21045.5002), Ryzen 7 7800X3D. The PR is merged with #2358 on
Two identical baseline runs differ by about 6 % in mean frame time. |
Optimize GPU memory guard batching by sorting and deduplicating alias pages and replacing repeated active-writer scans with a sorted sweep. Synthetic stress model: 4,063,488 linear comparisons reduced to 8,688 sweep checks, excluding sorting. Two independent reference implementations verified 421,875 cases with zero disagreements. Six Rust regression tests included. Native Windows/Rust validation and FPS benchmarking pending. AI-assisted (ChatGPT).