d3d12/gpu: make texture pool commit-aware and default LEONIDA_COMMIT_FLOOR on (D3D12-TEXTURE-POOL-COMMIT-FLOOR) #3201
Open
Jyx0208 wants to merge 1 commit from
upstream-pr/3201 into main
pull from: upstream-pr/3201
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
ProjectLeonida/mandy!3201
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3201"
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?
Imported from ubiquitarianism/leonida. Originally posted by Jyx0208 on 2026-12-02T18:38:13Z.
Claimed in the coordination issue as: D3D12-TEXTURE-POOL-COMMIT-FLOOR (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7353942933)
What and why
Refs: #2821
Under Windows WDDM, every
D3D12_HEAP_TYPE_DEFAULT64 MiB texture heap (pool.rs) is charged 1:1 to process private bytes and system commit charge. On high-VRAM GPUs (or any host whose Windows commit headroom tightens before local VRAM reaches 88% of budget):resource::let_go_idle()kept idle textures for 10 minutes becauseLEONIDA_COMMIT_FLOORwas off by default, allowingpool.rsto sprawl up to 244+ 64 MiB texture blocks (15.6+ GiBof VRAM and system commit) and pin them via fragmentation before commit pressure triggered cleanup.pool::room()scaledSTAGINGandsmallblock spares down to1under commit pressure and0undercritical_commit(), but never applied commit headroom orcritical_commit()toTEXTURESspares (which could keep up toSPARE_KEPT = 64empty 64 MiB blocks =4 GiBwhile VRAM < 85%, and keptSPARE = 2even when commit was critical), nor didpool::texture_with_cast()guard new 64 MiB heap creation againstcritical_commit()(unlikepool::small::block()).This change:
d3d12/crates/leonida-gpu/src/pool.rs):pool::room()now computestexture_spares(limit, keep, avail_commit, critical): returns0undercritical_commit()(also stoppingRipe::now()from pre-allocating ahead blocks), caps to1below the 4 GiB commit floor, and scalesSPARE_KEPTlinearly by half of remaining commit headroom above 4 GiB so large-VRAM GPUs do not hoard up to 4 GiB of empty heaps as commit tightens.pool::texture_with_cast()returnsNonewhenresidency::critical_commit()is true instead of committing a fresh 64 MiB heap (matchingpool::small::block(), falling back cleanly to per-texture allocation).LEONIDA_COMMIT_FLOORon (d3d12/crates/leonida-gpu/src/resource.rs,d3d12/docs/switches.md):LEONIDA_COMMIT_FLOORby default (=0disables it;LEONIDA_ABstill overrides it), so idle textures out of use for >= 2.5 s and >= 60 frames are swept once available commit drops belowLEONIDA_COMMIT_FLOOR_MB(default4096 MiB) before hundreds of 64 MiB blocks fragment and lock system commit.d3d12/docs/switches.mdviatools/d3d12_switches.py --out.Tested
python -I scripts/red_green.py feat/texture-pool-commit-floor --no-fetch): exit 0 (verdict: red then green) — both new hermetic child-process tests (pool::tests::room_and_texture_pool_drop_spares_and_refuse_new_blocks_under_critical_commitandresource::tests::commit_floor_defaults_on_and_zero_disables_it) fail onorigin/main(45dc41f9) and pass on this branch (703pass on both).leonida-gpuunit suite (cargo test --locked -p leonida-gpu --lib -- --skip depth_bounds_pipeline_loads_and_filters_draws): 704 passed, 0 failed.cargo test --locked -p leonida-gpu --features diagnostics --test replay): 1 passed, 0 failed.python -I scripts/check_no_game_data.pyandpython -I tools/d3d12_switches.py --check d3d12/docs/switches.mdboth pass (exit 0).-Resolution 1440, Frame Gen 2x):a917c54d,LEONIDA_COMMIT_FLOORoff):pool.rstexture blocks grew to15,616 MB(244blocks;269made), local VRAM peaked at22,703 MB, process private bytes reached49,917 MB, available commit dropped from43,568 MBto2,212 MB(hittingcommit critical7 times before0x887A0005at 79.5 min).LEONIDA_COMMIT_FLOOR_MB=20000to exercise the floor early on 64 GB RAM):376commit-floor sweeps recycled330,946idle textures (20,578 MB) inside the initial5,056 MB(79blocks) with zero new 64 MiB texture blocks created over the remaining 7 minutes; local VRAM stabilized at11,207 MB, private bytes at37,001 MB, available commit stayed15.4–17.2 GB(0pressure warnings,0errors), frame rate23–29 fps(unchanged), texture refresh1.6 ms/frame(vs2.8 ms/framebaseline).GPUs tested: NVIDIA GeForce RTX 4090 D 48 GB (driver 616.92, Windows 11 10.0.26200).
AI-assisted: yes (Antigravity using Gemini 4 Neon for analysis, implementation, and tests; separate read-only reviewer agent using Gemini 4 Neon audited the diff, edge cases, red/green tests, and clean-room rules).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — no translator rules changed)Imported from ubiquitarianism/leonida. Originally posted by x2Tweek on 2026-12-02T19:34:15Z.
Game-run test of this PR on a high-VRAM card: the textures are let go, but their 64 MiB blocks are not given back.
Setup: RTX 5090 32 GB, driver 621.40, i9-14900KS, 64 GB DDR5, Windows 11 (26300). Series X profile, 3840x2160
output,
LEONIDA_RENDER_SCALE=0.6667, the title's upscaler,-HardwareRT -SmoothMotion -PrecompileAll -Log,LEONIDA_REAPER=0. Base: upstream main0d7a451ab(2026-12-02) plus #3113 and #3182, diag build. Candidate:the same plus this PR at
c7d0c9627. Two runs of about 5.5 minutes each: same save, then city driving. Thenumbers come from the runtime's own
copystatmemory lines and thecensusline.pool.rstextures in blockspool.rs64 MiB texture blocksWhat happens: with this PR, idle textures are let go once commit headroom falls. Here that was at about
4.5 GB left: the texture count fell from 184k to 24k within 30 s. But the 64 MiB
DEFAULTheaps holding them stayallocated. 192 blocks hold 2.1 GB of live textures, so about 10 GB is empty but still charged. As a result, private
bytes and commit kept their trend, and the card's memory did not drop either.
What would help: a pass that releases (or compacts into) empty or nearly empty texture blocks once their
textures are gone, or a cap on block count driven by the same commit floor. Without it, on a 32 GB card the floor
frees texture objects but not the memory this PR targets.
The runs were not the same route, so I do not compare frame rates between them (27.8 vs 19.4 fps median; the
second drive was busier).
Logs (scrubbed of paths) available on request.
AI-assisted: the measurements and the write-up were done with Claude Opus 5.5 (Claude Code); the numbers are the
runtime's own log lines from the runs above.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T20:26:08Z.
Review: COMMENTED
Source check on
c7d0c9627for the retained-heap observation. At 3.5 GiB available commit the new policy allows at most one fully free spare whenroomsamples that value. That does not cap total blocks:Pool::reclaimonly dropsfree.whole(BLOCK)blocks and waits for returned ranges to become reusable. I verified the exact allocator and policy code in an isolated CPU harness: with three blocks and 64 KiB live in each of two, a zero-spare sweep drops only the wholly free block. The other two drop when their final ranges finish resting. The reported aggregate (2.1 GiB live in 192 blocks) therefore does not show how many whole heaps were releasable. For the next measurement, could you record the wholly free block count next to total blocks, ideally afterroomruns? That would distinguish fragmentation from a reclaim problem. Synthetic allocator test only; I did not repeat the GPU run. AI-assisted.Imported from ubiquitarianism/leonida. Originally posted by icdmkg2 on 2026-12-02T20:36:51Z.
Third-party Windows verification of #3201 (
D3D12-TEXTURE-POOL-COMMIT-FLOOR) on headc7d0c9627c7d0c962728c70551567bb9f9907d5f23253d986merged cleanly (git merge --no-ff) ontoorigin/mainb41763227.621.24(32.0.16.2124), AMD Ryzen 7 H 260 w/ Radeon 780M, 32 GB RAM, Windows 1110.0.26300.9974,rustc 1.98.1.Results (MEASURED)
python -I scripts/check_no_game_data.py(all 3 touched files)0python -I tools/d3d12_switches.py --check d3d12/docs/switches.md0LEONIDA_ADAPTER=5060python -I scripts/red_green.py 3201 --mutate0(verdict: red then green) — both new child-process tests (pool::tests::room_and_texture_pool_drop_spares_and_refuse_new_blocks_under_critical_commit,resource::tests::commit_floor_defaults_on_and_zero_disables_it) went red → green;702pass on both,1only on green (ok),0failures.--mutate:pool.rs:902(critical_commit()guard intexture_with_cast) andresource.rs:2840(commit_floor_enableddefault-on) caught;pool.rs:48,:93,resource.rs:2831does not build;pool.rs:58,:62,:74(and doc comments:41,resource.rs:2816)not caught.LEONIDA_ADAPTER=5060+LEONIDA_D3D12_DEBUG=1cargo test -p leonida-gpu --features diagnostics --locked --lib -- pool:: resource::tests::commit_floor --test-threads=123 passed, 0 failed(note: runningpool::with parallel threads can trip a pre-existing globalTEXTURES.restingrace ina_texture_gives_its_piece_back_when_it_goes;--test-threads=1passes cleanly)Review notes (READ IN CODE)
texture_spares's linear scaling above the 4 GiB commit floor ((avail_commit - COMMIT_FLOOR) / (2 * BLOCK)) and the< 4 GiBcap-to-1branch have no direct pure-function unit test (--mutateonly exercises thecritical_commit()→0path). Adding a small unit test directly ontexture_spares(...)would lock down all four branches.DEFAULTblocks pinned whenever at least one live texture remains in a block; that's worth keeping in mind alongside this commit-floor change (even if compaction/reclaim stays a follow-up).AI-assisted: Gemini 4 Neon (High) via Antigravity (test execution, diff review, and write-up).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T20:57:01Z.
VERIFY-3201 — Windows nativo: suite sin regresiones, control sintético, y una pregunta sobre el cambio de defecto
(this PR)45dc41f95(behindmainb41763227)main—merge-treeclean,git merge --no-ffclean (switches.mdauto-merged)Ran
The one failure is this machine's, unchanged all day:
descriptor::host::tests::views_are_made_beside_the_heap_and_copied_infails identically on cleanmain(the iGPU artefact ofD3D12CreateDevice(None, ..)that #2995 addresses).A note for whoever runs this: three lines in the output read
test result: ok. 1 passed; … 763 filtered— those are the child processes a couple of tests spawn, not the suite. The suite's own line is the704 passed; 1 failed; 59 ignoredone.The PR ships its own tests in the same files, so the red side had to be built synthetically: in a copy I made
commit_floor()returnfalseunder a test variable, rebuilt, and ran —FAILED: resource::tests::commit_floor_defaults_on_and_zero_disables_it. The test bites.What I would want answered
LEONIDA_COMMIT_FLOORgoes from off to on for every user, so idle texture copies are dropped sooner (10 minutes → whatever the floor allows) unless=0orLEONIDA_AB. A commit-floor-on-by-default is a real behaviour change, and the body's evidence is a red/green run that skipsdepth_bounds_pipeline_loads_and_filters_…. Is that skip because the test is slow/flaky on the author's machine, and was the default flip measured withLEONIDA_AB(the body mentions it as an override, not as a measurement)? Without that, the default is being changed on reasoning alone.texture_spares(limit, keep, avail_commit, critical)returns 0 undercritical_commit(), andtexture_with_cast()refuses a fresh 64 MiB block rather than committing it — that is the path the#2821report is about.What I could not test
critical_commit()on a real machine: the tests drive it directly rather than through a pressured card.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T22:00:35Z.
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T22:25:04Z.
RUN (in game, RTX 5070 12 GB, 315 s in-world gate) -- PASS on head
c7d0c9627(merged cleanly viagit merge --no-ffontomain8877be372).Build & Unit Checks (Windows 10 x64, RTX 5070 12 GB, driver 595.79)
python -I scripts/check_no_game_data.py-> PASSpython -I tools/d3d12_switches.py --check d3d12/docs/switches.md-> PASScargo test -p leonida-gpu --lib --locked pool::-> 22 passed, 0 failedcargo test -p leonida-gpu --lib --locked resource::-> 30 passed, 0 failedcargo build --profile diag --features "diagnostics,dlss,mimalloc" --locked-> PASSLive In-Game Gate (
-SeriesS -NoFrameGen, default env --LEONIDA_COMMIT_FLOORon by default)c7d0c9627on8877be372)315 s(443.9 s)64(5,611)0/027.0 fps(37.0 ms)21.5/28.2main(8877be372)315 s(441.9 s)63(4,338)0/027.9 fps(35.8 ms)26.1/29.6LEONIDA_COMMIT_FLOORwas active by default in the residency logs with0failed allocations and0sweeps under the floor (this host had> 40 GiBcommit headroom, so the low-commit eviction path itself was not forced during the run; commit-pressure behavior is covered by the unit tests and this run confirms clean steady-state behavior and zero regressions with default-onLEONIDA_COMMIT_FLOOR).AI-assisted: yes (Antigravity -- Gemini 4 Neon).
Imported from ubiquitarianism/leonida. Originally posted by Jyx0208 on 2026-12-03T03:10:21Z.
Thanks everyone for the thorough reviews, third-party verification, and live runs! Keeping head unchanged at
c7d0c9627so the passing in-game gate run stays valid.c7d0c9627merged ontomain8877be372(0errors,0device lost,27.0 fpsvs27.9 fpsonmain): https://github.com/ProjectLeonida/mandy/pull/3201#issuecomment-7360663780--skip depth_bounds_pipeline_loads_and_filters_drawsflag in the PR description came from the canonicalAGENTS.mdcommand (cargo test --workspace --exclude xtask --locked -- --skip depth_bounds_pipeline_loads_and_filters_draws), not from a failure on this GPU.LEONIDA_COMMIT_FLOORto default-on: while available commit is above4 GiB,commit_floor()short-circuits (0sweeps,0eviction overhead — confirmed by @lixonik's 315 s run). It only activates once commit drops below4 GiB(the same threshold whereresidencyenters commit pressure), andLEONIDA_COMMIT_FLOOR=0(orLEONIDA_AB) can still disable or A/B it.4 GiB,Pool::reclaimcan only freefree.whole(BLOCK)heaps, so scattered long-lived textures keep partially-empty blocks pinned (whereas triggering before sprawl kept our 4090 D run flat at79blocks /5.05 GB). Logging wholly-free vs total texture blocks and addressing block fragmentation / compaction belong in a focused follow-up PR perCONTRIBUTING.md(one topic per PR).scripts/red_green.py --mutateandLEONIDA_D3D12_DEBUG=1! We intentionally tested viapool::room()using existingorigin/mainsymbols rather than calling the newly introducedtexture_spares(...)directly soscripts/red_green.pycleanly evaluatesverdict: red then greeninstead ofred does not build.AI-assisted: yes (Antigravity using Gemini 4 Neon).
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.