Recompiler: heap memory windows without a guard (min + null view), and the 64-bit atomics check #1695
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1695
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1695"
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?
@brothernog on GitHub · 2026-11-24 19:22 UTC · original
brothernog:heap-windows-branch-free→main· +112 −54 · 8 files · 1 commits · openThe preparation step (P0) for heap memory windows as a default, which @ivall invited on #680 (comment) and @Pipodi listed in #1269 (comment). Still opt-in (
XCL_HEAP_WINDOWS=1); nothing changes with the variable unset. Part of #1269.With heap windows, every memory access was
[branch] if (xcl_w >= windows) { default } m = ResourceDescriptorHeap[base + xcl_w]; .... The guard gives each access two paths, and DXC's GVN can join their handles into aphi %dx.types.Handle, which NVIDIA refused in under a second withE_OUTOFMEMORY(#756). Onmainthe programs that showed it no longer do (their translation changed withb8b1f49, as @psuedo-tty found too), so this PR doesn't claim to fix a refusal today. What it changes is that the form can't produce one: the index is clamped,min(xcl_w, 16u)with all 16 heap windows in use (aselectwith fewer), and the slot after the window views holds a null raw UAV that reads 0 and drops stores and atomics, as the switch'sdefaultdoes. One path per access.What is in it
One commit,
Recompiler: heap memory windows without a guard, a null view outside them, rebased ontomaincbc296a(#1992, #1998: 16 heap windows, the expanded-window checks) from @WebIdentity1's integration patch (comment):gpu/recomp/emit.rs(mem_accessors): the clamped index, no guard.gpu/recomp/mod.rs:MEM_HEAP_NULL=MEM_HEAP_BASE + MAX_HEAP_WINDOWS(descriptor 20;+ MAX_WINDOWSwould clamp valid higher windows), docs.hle/d3d12x/console_heap.rs:set_window_viewswrites the null view, and only with 64-bit atomics on heap views; the shared heap's own allocations start after it (21). The 4 null views at 0..3 (#1992) are unchanged.hle/d3d12x/real.rs: noAtomicInt64OnDescriptorHeapResourceSupported→ no views, and the shaders keep the switch (window_views_failed), as with no shared heap.gpu/recomp/runner.rs: the two test heaps get the null view too.gpu/recomp/tests.rs: the out-of-UMA aliasing and invalid-window tests cover 4 / 8 / 16 layouts and theminpath.gpu/uma.rs:expanded_heap_window_shaders_translate_and_validatechecks the clamped index (selectwith 8 windows,minwith 16) instead of the old guard.Tested
RTX 3050 8 GB (desktop, Ryzen 7 5800XT), NVIDIA 610.88, Windows 11 build 26300, Rust 1.100.0 MSVC, release, DXC 1.9.2602.17.
On
maincbc296a+ this PR,cargo test --release -p xcl --lib -- --test-threads=4: 1100 passed, 0 failed, 26 ignored. Same withXCL_HEAP_WINDOWS=1. WithXCL_DIRECT_DXIL=1, 1099 passed and 1 failed (gpu_image_get_resinfo_1d_array), which fails the same way onmaincbc296aalone.The new
gpu_heap_windows_reject_out_of_uma_aliasing_all_slotsfails with an aliasing index (xcl_w & 3u) in place of themin.cargo clippy --release -p xcl --all-targets: no new warnings (772 oncbc296aand on this branch).Five retail compute programs, measured before the rebase on
9e3831e(4 windows) (the list from #1269, byfnv64of the console blob), split wave64, 4 windows, translated as the runtime does, then a coldCreateComputePipelineStatewith the runtime's root signature, one run each:mainguarded form4549529853faf5fda3c0b8a98beee431c9579f1bea53bccaf377ca6830935314f7016de4c088c4beNo handle
phiin either form on these five today. Driver times on this machine vary by up to ±25 % between runs of the same DXIL, so read the time column as "not slower".A title run with
XCL_HEAP_WINDOWS=1onmain9e3831eon this 8 GB card (for #680's open item 3): views made, 167 s, no device removal, no switch-form fallback, until the title's own watchdog exit.Regression run
Both with
XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_PAGE_BUDGET_MB=4096, back to back:maincbc296a:This PR (
7372ef0): 95.0 % ofmain's frames, 110.9 % of its peak commit.Not tested
AtomicInt64OnDescriptorHeapResourceSupported(the fallback path is not exercised here).AI use
mainwith #1992 / #1998 is @WebIdentity1's patch (prepared with Codex), applied as posted plus theuma.rstest update; I read the diff and ran the checks above.AI-assisted.
@brothernog on GitHub · 2026-11-24 19:34 UTC · original
@Pipodi heads-up for your test claim: I rebased this onto
mainc160d86to clear a conflict with #1426, so the head is nowdd9f1ff(was3009567). The rebase only resolved one test hunk ingpu/recomp/tests.rs; the description has the rerun suite (859 passed, 0 failed, with and withoutXCL_HEAP_WINDOWS=1) and a new smoke pair againstc160d86.This comment was AI-assisted.
@Pipodi on GitHub · 2026-11-24 20:10 UTC · original
Test report: #1695 at
dd9f1ffagainstmainc160d86, RTX 4090. Follows my claim 7142018775 (moved todd9f1ffin 7142428099).Tested
rustc 1.100.0. Both trees clean at their commits.cargo test --workspace -- --test-threads=4(debug), withXCL_HEAP_WINDOWSunset: 859 passed, 0 failed, 42 ignored.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64).heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).XCL_HEAP_WINDOWS=1: 859 passed, 0 failed, 42 ignored. Only the two wave64 tests are SKIPPED, soheap_window_out_of_memory_falls_back_to_the_switch_formran and passed.XCL_HEAP_WINDOWS=1(release).xcl shaders <record> --precompile --only cs, then--pipelinesinto the same cache.XCL_DXIL_CACHEper run, one run each, a cap of 24 GB private commit and 600 s.main.--pipelines)mainmainmainpipelines made / refusedline, and no answer on the NVIDIA driver cache. The time at which each run passed 24 GB is not a measure of the driver's cost, and I don't read anything into it.Regression run. The retail title, 60 s,
XCL_PRESS_AT=16:A,XCL_HEAP_WINDOWS=1, a new emptyXCL_DXIL_CACHEper run.mainc160d86:#1695
dd9f1ff:mainc160d86, rerun: the first run's log was overwritten before it was saved, so I ranmainagain with the same setup.mainrun, #1695 had 95.3 % of the frames and 102.1 % of the peak commit. Against the rerun, it had 92.3 % and 98.5 %.main's two runs differ by 3 % in frames and 4 % in peak.Not tested
--pipelinesrun in the heap form, which I claimed: I'm withdrawing it. ActivateRays alone passes 24 GB in DXC in this form, and the other two programs pass it in the driver, so the run cannot finish on this machine. With the compact form (#1316), ActivateRays builds in the heap form within 3,962 MB, and within 850 MB nested (@brothernog's run on #1692). The pack run makes sense on top of that, and I'll claim it separately if I do it.XCL_HEAP_WINDOWSunset.AI use: Claude Code. A Claude Sonnet 5.5 subagent ran the suite, the builds and the smoke runs. Claude Opus 5.5 (the main session) planned the series, checked the numbers and wrote this report.
@MatyEjsr on GitHub · 2026-11-24 20:12 UTC · original
Independent NVIDIA desktop verification of PR #1695 at
dd9f1ff1ffcfa2fb4998c3d181fd70e1510f0f94(both default andXCL_HEAP_WINDOWS=1).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, debug build, DXCdxcompiler 1.9.2602.17 (21d28f72)/dxil 1.9.2602.17cargo build --workspace -j 8: succeeded (5.94s, 0 new warnings).cargo test --workspace -j 8 -- --test-threads=8 --show-output(default): 859 passed, 0 failed, 42 ignored, 5 SKIPPED (gpu_geometry_wave32_prefix_count_over_a_mask:no wave64;gpu_wave32_program_in_wave64_hardware:no wave64;heap_window_out_of_memory_falls_back_to_the_switch_form:no heap windows;test_title_draws_with_a_root_signature_under_the_debug_layer:no d3d12SDKLayers.dll;uploads_start_from_each_subresources_state:no D3D12 debug layer (0x887A002D)).XCL_HEAP_WINDOWS=1 cargo test --workspace -j 8 -- --test-threads=8 --show-output: 859 passed, 0 failed, 42 ignored, 4 SKIPPED (same 2no wave64+ 2 debug-layer skips;heap_window_out_of_memory_falls_back_to_the_switch_formexecuted and passed).heap_window/memory_windowslib suite (including the newgpu_heap_windows_reject_out_of_uma_aliasing_all_slots): 8 passed, 0 failed, 0 ignored, 0 SKIPPED (0.64s).console_heapunit tests: 4 passed, 0 failed, 0 ignored, 0 SKIPPED (0.19s).XCL_HEAP_WINDOWS=1 cargo test -p xcl --test gpu_compute_e2e -- --nocapture --test-threads=1: 4 passed, 0 failed, 0 ignored, 0 SKIPPED (1.23s warm / 1.29s cold). Logs confirmedD3D12.X: memory windows from the shared descriptor heap (no per-access switch)on RTX 3090 (AtomicInt64OnDescriptorHeapResourceSupportedtrue). Comparing against basec160d86on the same fixture (console_wave64_compute_through_the_pso_hook_dispatch_and_read_back, 4 windows, split wave64): DXIL shrunk from5708 B(guarded branch form) to5648 B(branchlessmin+ null view), while the injected-OOM switch-form fallback stayed6128 Band passed.XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=1:heap_window/memory_windowslib tests 8 passed (0.88s) andgpu_compute_e2e4 passed (1.24s), cleanly falling back from direct DXIL to the HLSL heap-window path (5648 B DXIL) and using direct DXIL for the switch-form fallback (2892 B DXIL).Notes from diff review
memory_windows_reject_out_of_uma_aliasing/_all_slotscovers 32-bit out-of-UMA atomics onMEM_HEAP_NULL, but does not exercise 64-bit atomics (Interlocked*64) against the null raw UAV.console_heap::teststestsset_window_views(..., true); adding a small unit check forset_window_views(..., false)verifyingWINDOW_VIEWS_FAILEDand 0 UAV calls would cover the new guard directly.Not tested
vkd3d-proton).d3d12SDKLayers.dllabsent on this host).AtomicInt64OnDescriptorHeapResourceSupported.XCL_SAMPLE_*tests.AI use
@throny on GitHub · 2026-11-24 20:15 UTC · original
Two contributors checked independently and found that #1669 solves the same problem (for #1269) in a different way: #1607, group D44. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@thiagocalile on GitHub · 2026-11-24 20:27 UTC · original
Tested commit
dd9f1ff1ffcfa2fb4998c3d181fd70e1510f0f94on an AMD Radeon RX 6600 (RDNA2, native 64-lane waves): all targeted tests passed.Tested
32.0.21045.29003;XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11, debug build.XCL_ADAPTER=radeon cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=4: 121 passed, 0 failed, 17 ignored (36.42s).XCL_ADAPTER=radeon XCL_HEAP_WINDOWS=1 cargo test -p xcl --test gpu_compute_e2e -- --nocapture: 4 passed, 0 failed, 0 ignored (37.55s).XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 856 passed, 3 failed, 42 ignored (38.07s).mainon this RX 6600 (placed_title_textures_share_vram_and_preserve_pixels: 3D mip subresource mismatch, plus 2 mutex-poison cascadestransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory; tracked by #1028).SKIPPED(not counted as coverage):heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows(plus D3D12 debug-layer tests skip becaused3d12SDKLayers.dllis not installed).Not tested
scripts/smoke.ps1— no game executable here), D3D12 debug layer, NVIDIA / Intel GPUs, Linux / Wine.AI use
@milesah3ad on GitHub · 2026-11-24 20:32 UTC · original
Extra data for the null-view approach this PR shares with #1669, which I've closed in favour of this one. The two forms differ only in the index (
min(xcl_w, 4u)here,xcl_w < windows ? base + xcl_w : MEM_HEAP_NULLthere), with the same null raw UAV atMEM_HEAP_BASE + MAX_WINDOWS. So these reports on #1669's headdaaa354test the same mechanism, but not this PR's head or its 64-bit atomics check:mainc160d86with and withoutXCL_HEAP_WINDOWS=1, two rounds each, no regression or crash. AlsoXCL_D3D12_DEBUG=1runs into the world load: the same debug-layer message ids asmain, none new from the null view.mainand the head (the 1 is #202), withgpu_heap_windows_reject_out_of_uma_aliasingpassing through the null view.CreateComputePipelineStateon 20 programs from thenv680generator (4 windows, split wave64), guarded form vs null view: 253.0 → 238.4 s (−5.8 %), faster on base / loop / wave / 32-bit atomic shapes (−2 to −16 %), slower on the 64-bit-atomic shape (+12 to +19 %, DXIL +5 %). Your retail numbers are the better measure. I mention the 64-bit case in case it's worth a look on programs that use those atomics heavily.Not tested: this PR's head
dd9f1ffitself, and itsAtomicInt64OnDescriptorHeapResourceSupportedgate.AI use: Claude Code (Claude Opus 5.5) wrote this. The numbers are from the reports linked above.
@LocranKing on GitHub · 2026-11-24 20:37 UTC · original
Independent 8 GB NVIDIA Ampere (
RTX 3060 Ti, wave32) check atdd9f1ff1ffcfa2fb4998c3d181fd70e1510f0f94(basemainc160d86ef2efe3a07e4dfb473e4fa72eafb413c0), tested both withXCL_HEAP_WINDOWSunset andXCL_HEAP_WINDOWS=1.Setup
8024 MiB VRAM, Ampere, wave32), driver32.0.16.210131.8 GBRAM26200rustc 1.100.0, DXC1.9.2602.17,--releaseWorkspace tests (
cargo test --workspace --release --no-fail-fast -- --test-threads=4)XCL_HEAP_WINDOWSunset: exit0; 859 passed, 0 failed, 42 ignored (SKIPPED: 2no wave64, 2no D3D12 debug layer,heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows).XCL_HEAP_WINDOWS=1: exit0; 859 passed, 0 failed, 42 ignored (heap_window_out_of_memory_falls_back_to_the_switch_formran and passed; only the 2no wave64and 2no D3D12 debug layerskips remained).Regression runs (
scripts/smoke.ps1, 60 s,XCL_NETWORK=0, title folder name redacted)XCL_HEAP_WINDOWS=1,xcl.logconfirmedUMA: 3 sparse VRAM window(s) (12 GiB VA) + 4095 MB coherent window at 0x400000000andD3D12.X: memory windows from the shared descriptor heap (no per-access switch)at1.588 s(0refusals,0switch-form fallbacks — the 64-bit atomics capability check passed on this Ampere card).c160d86:1576 / 1538frames (102.5%),15200 / 16245 MBpeak commit (93.6%),0removals,0crashes.XCL_HEAP_WINDOWS=1vs basec160d86:1473 / 1538frames (95.8%),15763 / 16245 MBpeak commit (97.0%),0removals,0crashes.Base (
mainc160d86, default):PR head (
dd9f1ff,XCL_HEAP_WINDOWSunset):PR head (
dd9f1ff,XCL_HEAP_WINDOWS=1):Not tested: world-loading run on
dd9f1ff, hardware lackingAtomicInt64OnDescriptorHeapResourceSupported, AMD / wave64 hardware.AI use: Antigravity (
Gemini 4 Neon) built and ran the workspace suites and smoke runs on this hardware and drafted this report from the captured outputs; reviewed before posting. No game files attached.@minimalhipster990 on GitHub · 2026-11-24 21:52 UTC · original
XCL #1695 on the RTX 4090 — BeginUpdate and ResolveVBuffer
24 November 2026 · NVIDIA driver 621.24 · Eight matched rounds per shader
With heap windows enabled, the median first driver PSO creation time for ResolveVBuffer went from 2325.2 to 2090.4 ms (-10.1%). PR creation was faster in 8/8 matched rounds. BeginUpdate went from 295.9 to 284.6 ms (-3.8%, faster in 8/8 rounds). With heap windows disabled, base and PR emitted byte-identical HLSL and DXIL for both shaders. PR #1695 · Shader optimization tracker #1269
Timing results
All times are CPU wall-clock milliseconds. Each cell gives the median of eight samples followed by the observed minimum and maximum in parentheses. “First PSO” means the first call to
CreateComputePipelineStatefor the supplied DXIL in a new process. “Repeat PSO” uses the same device and bytecode immediately afterward.Heap-enabled PR relative to heap-enabled base
Within the PR, switching from root windows to heap windows changed median first PSO creation by -27.2% for BeginUpdate and -75.1% for ResolveVBuffer. The off-to-off control gives a direct view of timing variability on identical bytecode. The measurements cover pipeline preparation. Frame time and GPU dispatch duration were outside the timing interval.
DXC was faster with the PR in 7/8 heap-enabled BeginUpdate pairs and 8/8 ResolveVBuffer pairs. The heap-enabled ResolveVBuffer DXIL shrank by 25,884 bytes. Both the old and new forms created a PSO successfully on driver 621.24 for these inputs.
Validation
phi %dx.types.Handleacross the eight saved variants.windows_test filter on base: 11 passed. Includes the guarded-heap and root-window checks.windows_test filter on pr: 12 passed. Includes the four-slot null-UAV test covering reads, discarded stores and atomics, and canaries in two distinct memory windows.Inputs and method
c160d86ef2efe3a07e4dfb473e4fa72eafb413c0against the two-commit PR headdd9f1ff1ffcfa2fb4998c3d181fd70e1510f0f94. Both used release builds with the locked dependency set. Commit comparisonshaders.rpf. BeginUpdate isweatherParticle:CS_BeginUpdate_f7374ac1_Wrapped, console blob FNV-1af377ca6830935314, 1,740 bytes of ISA, wave64 translated for wave32. ResolveVBuffer issr_tracing:CS_ResolveVBuffer_ddc66de0_Wrapped, FNV-1a4549529853faf5fd, 32,008 bytes of ISA, wave32.AtomicInt64OnDescriptorHeapResourceSupported = true.XCL_HEAP_WINDOWSunset both sources emitted the root-window switch. WithXCL_HEAP_WINDOWS=1the base emitted a guard and the PR emittedmin(xcl_w, 4u)with a null raw UAV at slot 4.main,cs_6_6, HLSL 2021 and XCL’s normal optimization policy (default for BeginUpdate,-O1for ResolveVBuffer). Blob extraction, standalone DXIL validation, device and root signature creation, and all readbacks fall outside the three main timing intervals. The PSO used the runtime root signature with zero or five static samplers respectively.0x887A002Don this system, so persistent driver cache effects remain possible.The first four rounds finished before the readback harness build. The last four rounds were repeated after both revisions’ test builds and GPU checks finished because some original trials overlapped that work. The tables and raw data use the eight uncontended rounds. Superseded samples are retained separately under
logs/initial-overlap.The locally retained
timings.csvcontains the 64 reported timing rows.results.jsoncontains the measurements, ranges, artifact sizes and readback hashes. To reproduce from the retained checkouts and local dump, run the following commands in the benchmark directory, one at a time.AI assistance: OpenAI Codex prepared the harness, ran the measurements and drafted this report.
@DavidM1911 on GitHub · 2026-11-24 22:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
@brothernog on GitHub · 2026-11-24 22:21 UTC · original
@minimalhipster990 thanks, this is the 4090 / 621.24 data the PR was missing. Two things from it matter beyond the timing:
XCL_HEAP_WINDOWSunset, the HLSL and DXIL were byte-identical, as intended. With it set, there were no handlephis and the readbacks matched, on a second NVIDIA generation.Your −8.8 % DXIL and −10 % first PSO on ResolveVBuffer (
4549529853faf5fd) are close to what I saw on the 3050 (287 → 262 KB, 3.5 → 2.3 s, one run each, so noisier).This comment was AI-assisted.
@WebIdentity1 on GitHub · 2026-11-25 02:18 UTC · original · edited 2026-11-25 02:22 UTC
Prepared and tested a current-main integration of your existing two commits, preserving the #1992 null-T# reservation and #1998 expanded-window layout. This is an integration patch for your PR, not a competing implementation or a claim to fix the retail heap-window hang.
Base:
cbc296ab65a2661a61e3e2da109134bcd5319f60. Source PR:dd9f1ff1ffcfa2fb4998c3d181fd70e1510f0f94(bothc33782aanddd9f1ff). The original optimization and atomic64 feature gate remain yours.The important integration detail is
MEM_HEAP_NULL = MEM_HEAP_BASE + MAX_HEAP_WINDOWS, notMAX_WINDOWS. On current main those limits are 16 and 4 respectively. PreserveMEM_HEAP_BASE=4, put the null raw UAV at descriptor20 and start subsequent allocations at21. Keeping the old limit would clamp valid higher windows and place the null view on window4. The integration also preserves main's active/unused expanded-window checks and updates the mock's descriptor-call counts.Tested — native Windows10 Home19045, Ryzen7800X3D, RTX3090 driver591.74, Rust/Cargo1.98.1MSVC, DXC/DXIL1.8.2502.11, debug; actual adapter printed.
XCL_ADAPTER=3090,XCL_SPLIT_WAVE64=1.XCL_DIRECT_DXIL=0: 8 passed / 0 failed / 0 ignored / 0 skipped.XCL_DIRECT_DXIL=1: 8 / 0 / 0 / 0. Expanded tests call the direct translator explicitly, bypassing the fixture's old silent HLSL fallback above four windows.gpu_memory_windows_beyond_the_root_uavs: window7 scalar read is(0,0)instead of(0xC0FFEE,0x1234). Descriptor capacity/placement stay correct in that control, avoiding an out-of-bounds descriptor-write experiment. This isolates clamping; it is not an execution of the old PR branch.The high-window fixture reuses the previously published #1998 probe, adapted from XCL #822 (
e9705bb, GPL-2.0-only; attribution retained). Your invalid-window helper now uses addresses beyond the selected layout, covers4/8/16, and passes the actual window count to both translators. Both322-file source manifests matched before/after and local snapshots; XCL rebuilt both sources. Patch reverse-application check passes.Not tested — full workspace suite, retail smoke/hang, other GPUs, hardware without heap atomic64 support, current compile-time/memory gains, or byte-identical heap-disabled output against main. Direct DXIL retains its existing guarded accessors; its run checks compatibility with the changed shared descriptor layout. Existing performance reports remain tied to their original revisions. No source commit/push or new PR; original branches/worktrees preserved.
AI use — Codex (GPT-6) resolved this isolated integration, extended/reused the synthetic fixtures, ran the native comparisons and prepared the patch/report. The patch retains the existing PR's implementation and provenance.
Integration patch against
cbc296a(existing PR plus compatibility edits and tests)@brothernog on GitHub · 2026-11-25 04:21 UTC · original
@Pipodi Thanks for running both trees under the same cap. ActivateRays hit 24 GB on its own in DXC, and the other two cases hit the cap during driver compilation. That gives us a useful baseline, but it doesn’t show a memory fix in this PR. I’d keep that investigation separate from the null-view change. AI-assisted draft.
@zohaiblazuli on GitHub · 2026-11-25 14:32 UTC · original
Cold build times of
main's current heap form (1a0bbe3, with the guard) against the switch form, for 8 compute programs on an RTX 3060 (NVIDIA 617.42), driver caches off: #2088 comment.219287eb2f6021fe: only 1.9× (819 → 434 s), while removing the window choice entirely (wrong results; an upper bound) gives 133 s.If this PR's unguarded form is meant to narrow that gap,
219287eb2f6021feis a program to show it on. I have not measured this PR's head, and I did not check the heap form's results, only its build time.AI use: Claude Code (Claude Opus 5.5) ran the measurements and wrote this.
github-bot referenced this pull request2026-11-26 06:18:31 +00:00
@DavidM1911 on GitHub · 2026-11-26 06:07 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.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.