Repository navigation
Conversation
… measuring Staged the same evening, compiled and passing the tests, none measured: the original's fxceless#1002 (exact cascade shadows on 32 lanes), fxceless#1324 and fxceless#1333 (descriptor heaps), three more ray-only skips with a count of such programs, fxceless#1341 (VICTORY_ALT_FLIP) and VICTORY_RAM_TRIM. Why nothing of it has a figure: the process holds about 16.5 GB private in the first room (the layer's own account of one session), the lab's runner waits for 20 GiB free, and six readings between 18:47 and 19:11 local time gave 16.1 to 18.0 GiB free. The switches that make the layer hold less (VICTORY_WINDOW_KB, VICTORY_WINDOW_TAILS, VICTORY_INPLACE, all in main and off) go first. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…mended, heap identity, and the switches brought from other projects Forty-one commits, compiled and tested as 9ef09c2 (victory-shader 267, victory-gpu 325, victory-loader 51, victory-hle 128, no warnings; build 9ef09c2-diagnostics). On by default: - the original's two commits up to 58de9bf: fxceless#927 (half-precision values through 16-bit buffer views keep their bits) and the sign extension of the original project's #3124; the translator changes, so shaders are translated anew once; - the leak of placed-view shapes mended (TaynanGT/Vice-Tay PR fxceless#27); - fxceless#1324 (VICTORY_HEAP_IDENTITY, =0 goes back), fxceless#1333 (VICTORY_REMAP_PER_HEAP, =0 goes back) and fxceless#1336. Off by default: VICTORY_NAN_SCRUB, VICTORY_SHADER_LOOP_LIMIT_CS, VICTORY_SHADER_EARLY_DEPTH, VICTORY_UNMAKE_QUIET, VICTORY_PATCH_WAITS, VICTORY_PATCH_CLZERO, VICTORY_PATCH_CLWB, VICTORY_BVH_NAMED_WRITES, VICTORY_BVH_BOUNDS, VICTORY_BVH_FENCES, VICTORY_PIPELINE_COMPUTE_WAIT, VICTORY_CARD_AWAKE, VICTORY_GUARD_OUTSIDE, VICTORY_HEAP_RESCAN_SPREAD, VICTORY_LAND_ASIDE, VICTORY_GUARD_RUNS, VICTORY_RT_SKIN_SKIP, VICTORY_WINDOW_SKIP_SAME, VICTORY_MERGE_SUBMISSIONS, VICTORY_MESH_LAUNCH and the capture switches; =alt for four of them. Measured by Codex on build 9ef09c2, the ten switches of Status, the scripted manoeuvre, a quiet machine, one session: 1,819 frames in 274.0 s, 6.64 fps, median frame 144 ms (95th percentile 197), against 6.69 fps and 141 ms on the code of main before it (-0.7 %, one session each). Private memory in the room 16.8 GiB against 16.1 to 16.7 in six sessions of main that day; the layer's windows 3,252 MB against 2,844 to 3,336. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Ported from Kamiloj9/victory-dlss commit 2023d5c (Kamil Ojdana), which adapts PastiiJay/klbf-lab commit 74315e7: the ranges of title memory the runtime mapped, unmapped or wrote lived in one unbounded Vec that the first texture pass std::mem::take()d. A second view heap then saw none of the notifications (its placed textures stayed stale until its slots were written again), and a long run grew the Vec without bound since nothing takes it unless a shader that picks textures by index is bound. The ranges now live in a RemapQueue: sequential numbers, coalescing of consecutive pages, and REMAP_LIMIT (1 << 15) entries with the oldest evicted. Each heap has a cursor: it takes what was recorded after its last pass, and a heap that finds its cursor behind the evicted range rescans all its placed slots once instead of silently missing the range. Both heaps still catch up on their own turns, and a slot a draw read through a table still waits for its draw. The metric text says "evicted from history" instead of "dropped". Tests: a unit test of snapshots, coalescing and eviction detection, plus the WARP test extended to two view heaps, per-heap cursors and an evicted history that forces the rescan. cargo test -p victory-gpu --lib: 218 passed, 0 failed, 6 ignored; cargo clippy -p victory-gpu --all-targets -- -D warnings: clean. Not in the fork, upstream/main, the fxceless#653 batch or any open PR (checked by the fork comparison); this pull request touches descriptor/host.rs, which
f513c17 to
42be495
Compare
|
Rebased onto current main New head: |
|
The CI Two open PRs already fix the cause: #1357 (maintainer branch, |
|
The rebased #1333 still merges cleanly with main Keep this small test group on the next rebase: it gives a behavior signal even if the unrelated main file-size gate still fails. This is an isolated remap suite without a title or a full CI run. PortBridge · AI-assisted test report. |
Yes, the failure is due to irrelevant causes from the main branch itself. Also lots of repos are also suffering this. However,it's just a test bug. |
CwWwWwW
left a comment
There was a problem hiding this comment.
This commit comes with the other fours, urgent and important, please review ASAP. Thanks
Problem
The ranges of title memory the runtime mapped, unmapped or wrote were kept in one unbounded
static REMAPPED: Mutex<Vec<(u64, u64)>>and the first texture pass took all of them withstd::mem::take. Two consequences:Found by comparing the other forks: Kamiloj9/victory-dlss commit
2023d5c8b(Kamil Ojdana), which adapts PastiiJay/klbf-lab commit74315e7. It is not in this fork,upstream/main, the #653 batch, or any open PR (checked by the fork comparison). This is that fix ported.Change
RemapQueue: sequence-numbered ranges, coalescing consecutive pages,REMAP_LIMIT = 1 << 15entries, the oldest evicted.HostHeap::remap_cursor: each heap takes the ranges recorded after its last pass;texture_slots_remappedis nowrefresh_remapped(&REMAPPED, frame).Nonefromsnapshotand rescans all its placed slots once, instead of silently missing the range.remapped()records and counts evictions; the metrics line says "evicted from history" rather than "dropped".texture_slots_page_writtenstill runs first and is unchanged; slots a draw read through a table still wait for their draw.Tests
remap_history_delivers_extended_ranges_and_detects_eviction: coalescing a page sequence, snapshots after a cursor, an evicted range returningNone, and the empty latest snapshot.remapped_memory_makes_its_texture_slots_dueextended to a second view heap: both heaps make their own slots due from the shared ranges, each cursor advances once, and an evicted history makes both rescan and still leave the draw-table-owned slot for its draw.cargo test -p victory-gpu --lib --locked: 218 passed, 0 failed, 6 ignored.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.Coordination
This touches
descriptor/host.rs, which open #1324 also changes (Heap::drop/dynamic slots, an independent area). Both are needed; whichever lands second should be rebased. It does not depend on #1324.(CI note: the
checkjob on main is currently red on the asset-policy violation; #1322 fixes that, after which this can be rebased.)