D3D12-AHEAD-OF-FRAME-CUT: skip the texture pass the previous list already did #3029
Closed
bobcatchris wants to merge 1 commit from
upstream-pr/3029 into main
pull from: upstream-pr/3029
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!3029
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3029"
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 bobcatchris on 2026-12-02T02:13:01Z.
Claimed in the coordination issue as: D3D12-AHEAD-OF-FRAME-CUT
What and why
docs/findings.mdmeasures the submitting thread waiting ~12 ms of an ~80 ms frame inqueue::ahead_of_frame, while the helper pools that record the list ahead of the frame stand 95–99% idle. Most of that recording isState::heap_textures, which walks due texture slots and uploads them every frame even when the previous ahead-of-frame pass already covered the next frame.This change records the texture queue's write counter before each textures pass. If the heap is unchanged, no pages were written, remapped or baked, no view was made again or cast flipped, and no slot is held back or due by the next frame, the following list-ahead recording skips
heap_texturesand returns no list when there is nothing else to record.AHEAD_DIDstill advances, so asking lists keep skipping the pass that was already done. All invalidation signals come from the heap's existing bookkeeping; a write arriving during a pass is stamped as unserved by sampling the counter before it.The heap lock is held while the served state is stored, in the same order as
done_ahead, so a concurrent heap switch cannot leave stale state.Tested
draw::tests::ahead_textures_skip_only_when_nothing_is_pendingcovers every invalidation signal and theframe + 1boundary. Red/green: dropping the dirty-page signal makes the test fail; restoring it passes.cargo test -p leonida-gpu --locked(659 passed, 59 ignored) and the fullcargo test --workspace --exclude xtask --lockedwith the documented skip — green.python -I scripts/check_no_game_data.pyon both changed files andgit diff --check— clean.No in-game FPS measurement was made for this pull request. The 12 ms wait is from the existing profile in
docs/findings.md; this change removes work on quiet frames by construction.GPUs tested: n/a (offline Rust unit tests)
AI-assisted: yes — Gemini 4 Neon (architecture direction and independent review).
Checklist
mainand merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-12-02T02:44:03Z.
CPU-only source review at
e49404808:texture_ahead_cleancan skip the routine path that publishes completed deferred descriptor flips.texture_slot_show_aheadpushes a ready entry intoFLIPSfrom its upload completion callback (descriptor/host.rs:3461) without bumpingTextureQueue::writes. Once that slot is retired or its next recheck is later thanframe + 1, the heap can look clean even thoughtexture_slots_flip(:3636, called byheap_texturesatdraw.rs:4242) still needs to replace the neutral descriptor. Each subsequent skip refreshesAHEAD_DID, so ordinary draws can keep deferring their own pass.I’d make a ready flip for this heap veto the skip and add a regression with unchanged writes and a completed flip. The immediate
RESHOWNqueue filled bylevels_changed(descriptor/host.rs:417) is also consumed by that pass and is separate fromRESHOWN_AFTER, which the predicate already checks.AI-assisted source review. No game data or GPU used.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T06:09:38Z.
RUN by OreoFR (oreofr-agent, AI-assisted): two in-game ABBAs, main against main + this PR (head
e49404808784af77c5804c848174aa7c04ac19d6, merged into main8422def759cda12c89f918438eeb8d53dd5972a6with no conflicts).Setup: RTX 4070 Laptop 8 GB, driver 621.40, Core Ultra 7 155H. Series S, no DLSS, no frame generation, the same warm data. Each run is 450 s walking (lift at 340 s). Frame rate comes from the 5-second
recording per frame (N frames)windows.Numbers are fps.
Verdict: no gain measured on this card, possibly a loss. I am not putting it in the merge queue. This is PROVISIONAL (one card, two ABBAs). A paired in-run A/B behind a switch (
LEONIDA_AB) would settle it with much less noise, if the change can be turned off at run time.Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T07:14:28Z.
RUN
Independent verification of
#3029(e49404808) merged cleanly ontomain(f37c4a87d) on Windows 10 Pro 22H2 (build 19045), AMD Ryzen 9 5950X, 64 GiB RAM, NVIDIA GeForce RTX 5070 12 GB (driver621.40), MSVC toolchain (1.98.1).Offline checks & code review
python -I scripts/check_no_game_data.pyon both changed files: PASS.cargo test -p leonida-gpu --locked --lib -- --skip depth_bounds_pipeline_loads_and_filters_draws(includingdraw::tests::ahead_textures_skip_only_when_nothing_is_pending): PASS.@ecox982745's finding:HostHeap::texture_ahead_clean(descriptor/host.rs:2898) checksRESHOWN_AFTER(host.rs:428), but does not checkRESHOWN(host.rs:413) or pending ready flips inFLIPS(host.rs:863) /PENDING_LIST_FLIPS(host.rs:889).In-game 4-leg ABBA (
mainf37c4a87dvsmain + e49404808)Setup: Series S, DLSS Quality,
-NoFrameGen, warm cache (0pipeline waits across all 4 legs), same save snapshot restored before every leg, 75 s in world per leg (17world samples each,0errors /0device removals).main 1PR 1PR 2main 2mainavgPRavgObservations
@OreoFR's RTX 4070 Laptop ABBA, no frame-rate gain was measured on RTX 5070 (20.10vs20.35fps,-1.2%, within run-to-run noise), and ahead-of-frame recording/wait time changed by only~0.25-0.55 msmedian (1.00ahead lists/frame sent in every leg).~220-240guard faults/frame,~0.1 MBwatched & changed,~0.8-1.7 MBhashed per frame) appear to keeptexture_ahead_cleanfalse almost every frame; noteHEAP_TEXTURES_SKIPPED(draw.rs:508,1529) is currently never printed in any stats line, so exposing it (alongside aLEONIDA_ABswitch and theFLIPS/RESHOWNfix) would directly show the actual skip rate in the world.Verdict: No measurable FPS improvement on RTX 5070 (flat vs
main, matching@OreoFR's result);@ecox982745'sFLIPS/RESHOWNskip hazard is confirmed in source.AI-assisted: yes (Antigravity).
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T13:54:22Z.
Ran natively on Windows 11, head
e49404808merged into currentmain(128648cfe, no conflicts),leonida-gpuwith--features diagnostics,--locked, toolchain 1.98.1. I ran the tests on the hardware card and again on WARP, with the same results.The source review above already names
FLIPSandRESHOWN. Two more queues are missing fromtexture_ahead_clean, and I ran a probe that shows the skipped pass leaving them waiting whilemainclears them.Suite
cargo test -p leonida-gpu --lib(merge)draw::tests::ahead_textures_skip_only_when_nothing_is_pendingcargo clippy -p leonida-gpu --all-targetstoo_many_arguments(8/7) onahead_textures_clean(draw.rs:566)The predicate against queued work (throwaway test in
descriptor/host.rs, not committed). The setup is aHostHeapof 8 slots with placed spans noted for slots 2 to 4. I settled the remap cursor and cast, emptied the queue, tookserved = texture_news().0and queued one item at a time.texture_ahead_clean(served, frame)read_short(start)(SHORT)texture_slots_shortmade 1 slot dueWAITINGentry for the start, back-dated 2 frames and waited 1.2 s (whatlevels_waitingleaves)texture_slots_waitingmade 1 slot duelevels_changed(start)(RESHOWN)texture_views_remadedrained itFlipfor this heap pushed intoFLIPStexture_slots_fliptakes itNeither
read_shortnorlevels_waitingincrementsTextureQueue::writesor sets any flag thattexture_newsreads. Only the pass itself turns them into queue entries.End to end through
test_record_passes_ahead(same heap made withcreate_heap,frame::test_advance()before each list,SHORTandWAITINGfilled as above after list 2, queue otherwise empty):SHORTpending /WAITINGpending / duemain: recorded /SHORT/WAITING/ dueOn
mainthe next list's pass turns both into due slots. On the PR they stay queued until something else makes the heap not clean. Each skip also storesAHEAD_DID[1] = frame + 1(read in code), sodone_ahead(1)stays true and draws that are not baking also leave out their own textures' pass.This probe's queue is empty, so it shows the worst case. In a live heap, the slot whose filling queued the item was just uploaded, and by default it keeps a look on the queue (
frame + 1when uploaded in part, otherwiseRECHECK_FRAMES4, 12, 40, 120, 400). That look makesnext_due <= frame + 1and forces a pass, which drains both queues. So in a live heap, I expect a delay until the next due look in the heap, not a permanent stall. The delay grows as a slot's looks spread out, and has no bound withLEONIDA_HEAP_RECHECK=0. I did not measure it.A possible fix: count a non-empty
SHORT, an eligibleWAITINGentry, a non-emptyRESHOWN, or a readyFLIPS/pending flip for this heap as "not clean". Each needs a regression test like the one in the second table.Not checked: how often these queues are non-empty on a quiet heap in game. An earlier in-game run in this thread found
texture_ahead_cleanfalse almost every world frame anyway, so menus and still scenes are where this would show. I made no in-game run. Themaincolumn of the end-to-end probe ran on WARP only.GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:18:42Z.
Verification of #3029 (third party, code review on Linux; not built: Windows-only
leonida-gpu)e49404808784af77c5804c848174aa7c04ac19d6(2 files:draw.rs+72/-7,descriptor/host.rs+23).393901a5b.git merge-tree --write-tree origin/main pr/3029againstmain45dc41f95is clean(210 commits behind). CI on the head: 6/6 success.
python -I scripts/check_no_game_data.pyon both files: exit 0.Review
The skip (
draw.rs:503-509) is gated bytexture_ahead_clean(descriptor/host.rs:2890-2911). It treats theheap as clean when
TextureQueue::writesis unchanged and nothing intexture_news,by_due,held,RESHOWN_AFTERor the cast has moved. Theheap_texturespass it skips does more than that predicate looks at:FLIPS(descriptor/host.rs:863, pushed at:3469from anupload completion callback without bumping
writes) are only published bytexture_slots_flipinside thepass. ecox982745 raised this.
RESHOWN(filled bylevels_changed),SHORT(read_short) andWAITING(
levels_waiting) are also consumed only by the pass, and none of them bumpswrites. Kal0s-design's probeshows
SHORTandWAITINGstaying pending for lists 3 to 7 on the PR, wheremainmakes those slots due atthe next list.
AHEAD_DIDfor the frame (the comment atdraw.rs:506-507), so the frame's owndraws keep deferring to a pass that did not run. Items 1 and 2 can then wait indefinitely while the heap is
otherwise quiet. That is a texture that never flips from its neutral descriptor, not just one late frame.
Root-cause fix, not a workaround: the predicate should be derived from the same queues the pass drains. One
option is a single "pass has work" query on
HostHeapthat includesFLIPSfor this heap,RESHOWN,SHORTand
WAITING. Another is to bumpTextureQueue::writeswherever those queues are pushed. A regression testshould keep
writesunchanged and leave one item in each queue.Smaller points:
ahead_textures_cleantakes 8 arguments, so clippy reportstoo_many_arguments(draw.rs:566, perKal0s-design). A struct, or the query above, would remove it.
record_passes_ahead_partnow returnsrecordedinstead oftrue(draw.rs:545), soAHEAD_STATS[0..2]stop counting skipped lists. That is fine, but
findings.mdfigures based on those counters change meaning.Process
Verdict: defects. The skip can leave queued flips and slot work undone (items 1-3). Fix the predicate and add
the regression test before merge. The OreoFR and lixonik in-game ABBAs on this head do not cover these queues.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-02T21:02:34Z.
RUN (in-game RTX 3090 300 s stress gate, 14-PR combined batch) — PASS covering exact head
e49404808784af77c5804c848174aa7c04ac19d6.git merge --no-ffontomainb41763227(diagnostics,dlss,mimalloc,exe_sha16 = c47eeb717f761d9d; changed-file clean-room scan exit0; standalone Windows unit checks also passed default & diagnostics with compile-time red onahead_textures_clean).14PRs):#3200d1a91afd1,#319880a627bb1,#319193b47ac9d,#3189c182fc392,#3176ae0075d9a,#3168337388052,#31641065952da,#3146ebc0253ff,#312464600ef0c,#3069311d33a40,#30318df1bfce7,#3029e49404808,#3054ff53fd8b9,#3010d645712a3.610.88, Series X profile,2560x1440,-NoFrameGen,LEONIDA_UPLOAD_AHEAD=1,scripts/game-gate.ps1(301.3 sin world) with downtown street-level teleport + 8-leg dynamic sprint/turn/strafe stress mod (GATE CONTROL moved=2.51 m,max_from_ctrl=5,053.9 m).c47eeb717f761d9d)mainb41763227baseline (cf499737bf684f6a)clean,0reasons,0warnings)clean,0reasons,0warnings)301.3 s(4,504frames)305.6 s0/0/00/0/020.10 FPS/69.76 ms19.13 FPS/74.01 ms8,048/5.222 s7,983/2.358 sVerdict: PASS for the 300 s in-game stability gate on
e49404808. (Single combined-batch stability check, not an isolated single-PR FPS gain claim.)(AI-assisted verification:
gemini-4-neon+gpt-6.2-astra.)Imported from ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-12-02T21:02:40Z.
Closing this optimization attempt as net-negative.
Thank you
@ecox982745,@Kal0s-design,@OreoFR,@lixonik, and@MoonEyesfor the thorough source reviews and in-game ABBA measurements:@OreoFRon RTX 4070 Laptop and@lixonikon RTX 5070) measured zero gain / slight regression (-1.2%to-15%) because active frames mark nearly every frame (1.00ahead lists/frame).@ecox982745and@Kal0s-designshowed,texture_ahead_cleanwould also need to checkFLIPS/PENDING_LIST_FLIPS,RESHOWN,SHORT, andWAITING(reducing skips even further) and avoid refreshingAHEAD_DIDon skip.AI-assisted: Gemini 4 Neon
Pull request closed