d3d12/vulkan: batch indirect clamp windows and lift default overflow cap (RT-INDIRECT-CLAMP-WINDOWS) #3331
Open
azsekazvamdimitar wants to merge 3 commits from
upstream-pr/3331 into main
pull from: upstream-pr/3331
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!3331
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3331"
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 azsekazvamdimitar on 2026-12-03T12:58:26Z.
Claimed in the coordination issue as: RT-INDIRECT-CLAMP-WINDOWS (https://github.com/ProjectLeonida/mandy/issues/3312#issuecomment-7377256952)
What and why
Two changes to gta6rt (
runtime/), both measured in the prologue cell on an RTX 3090 with Resizable BAR.1. Clamp windows: the clamped indirect draws of a run share one clamp pass and one rendering scope.
Every indirect draw the title records goes through the GPU argument clamp. Until now each clamped draw ended the
rendering scope, recorded its own clamp pass with two full
ALL_COMMANDSbarriers and a graphics/compute switch, andbegan rendering again (attachment transitions,
LOAD/STOREof every target). The cell issues about 3,800 such drawsa frame, and this per-draw overhead was most of the mesh time.
emit_commandsnow gathers the clamps of consecutive raster draws into a window (detail::clamp_window). It recordsthem in one pass before the window's first draw (
IndirectArgumentClamp::emittakes a span of calls: fills per call,one wait, one bind, a dispatch per call, one stats copy barrier, one release barrier). The later clamped draws of the
window keep the rendering scope when their attachments match. A window ends:
writes_buffer) or storage (writes_storage, new: any stagedeclaring a writable storage image or buffer,
spirv_declares_writable_storage);so the full barrier a clamp pass ends with still separates it from the draws before it, as on
main.Draws in one rendering scope get no barrier between them, so a later draw must not read what an earlier one of the
window wrote. Without the
writes_storagebreak the cell's interior went black: some pixel shaders write storageimages, which
writes_bufferdoes not cover. The clamp passes of a window charge the list's work budget in onedispatch, so if a list ever exhausts it (0 records over budget in every boot measured) which draw goes empty is not
fixed. Non-clamped draws that share a rendering scope after a storage-writing draw get no barrier either; that is
the same on
mainand not changed here.2. No default budget for overflow title-buffer windows.
#2865 added a default cap to
external_window_cap(2 GiB unstaged, 4 GiB staged). At world load the arena (4094 MiB,capped by
maxMemoryAllocationSize) fills, and the overflow windows outside it need more than that. Each refusal logsGPU address arena full ... title memory has no windowand leaves title memory without a GPU copy. In the cell thisloses the walls, the bunk bed and the photos (50 refusals in one boot, with the overflow at 512 blocks of 4 MiB, the
whole 2 GiB).
LEONIDA_EXTERNAL_WINDOWS_MBstill sets a budget (a whole number of MiB; anything else is ignored);unset, a window is refused only when memory runs out, which is what the code did before #2865
(
parse_external_windows_budget,docs/d3d12_vulkan.mdupdated). Only a 24 GB card was measured; on a smaller onethe overflow competes with everything else for VRAM and host-visible memory either way.
Tested
Measured on an RTX 3090 24 GB, NVIDIA 590.48.01, Debian 13 (Linux 6.12), GE-Proton (
gta6rt.exebuilt withclang-cl/xwin), Resizable BAR on and the default arena placement. Series S profile (1920x1080 output, 1280x720
internal). Each run is one 360 s boot from cold start into the prologue cell with a fixed input script. The fps is the
median of the runtime's 10 s
submit framewindows from t = 215 s (14 windows):title memory has no windowmain), default cap (2 GiB)writes_storagebreakGPU split with
LEONIDA_GPU_PROFILE=1(ms per frame, mean of the reports after t = 250 s). Without the clamp windows,the same runtime on a shader farm of the same speed (the profiler's own scope splits cost fps, so compare the split):
The heaviest pipeline (ped mesh + deferred ped pixel shader) went from 19.9 to 1.2 ms a frame. Screenshots of the last
minute of each boot show the cell complete (walls, window and yard, photos, bunk bed). They show game content, so they
are not attached.
Tests (Linux clang build of the portable subset, plus the Windows build of
gta6rtandd3d12_indirect_rt_test):replay_state_cache_testcase 5c-2: windows end at a buffer-writing draw, a storage-writing draw and adispatch, and a later clamped writer opens its own window. Case 5c-3: a skipped draw stays inside a window, and
inside a pipeline-statistics query each clamped draw gets its own pass between two segments. Red, each by one edit
of
detail::clamp_windowin a copy of the source: one-draw windows (the former behaviour) fail 5c-2 and 5c-3; awriter joining the window fails 5c-2; no statistics break fails 5c-3.
indirect_clamp_test(live Vulkan, RTX 3090): four calls in one pass, three sharing a list budget, clamp like fourseparate passes; validation errors 0.
arena_staging_testtest_external_windows_budget: red with the former 2 GiB default (unset, empty and invalidvalues give no budget,
2048gives 2 GiB,2Gis ignored).replay_dropped_indirect_clamp_testandctestpass. The exception isconsole_list_records, which does notcompile with Linux clang on
maineither (-Wc++11-narrowinginconsole_list_records_test.cpp:147-159, a file thisPR does not touch).
python -m unittest discover -s tests -p "test_docs_*.py"(59 tests pass).python -I scripts/check_no_game_data.pyon the changed files.GPUs tested: NVIDIA RTX 3090 24 GB, driver 590.48.01, Linux 6.12 + GE-Proton (Wine).
AI-assisted: yes. The changes were written with Claude Opus 5.5 and Gemini 4 Neon (OpenCode / oh-my-opencode) and
reviewed by a separate read-only reviewer agent (oh-my-opencode
oracle).Not in this PR (pre-existing, found while measuring):
LEONIDA_DEVICE_LOCAL_ARENA=1on a Resizable BAR card loses walls and window frames in the cell. Thishappens with or without this PR, and with builds from before #2865's last commit. The default (
auto) is notaffected.
TitleBufferWindows: a destroyed block keeps itsPublished::stagedpointer, andcommit_uploads/staging_statscheck only that pointer. Published slots are never reused, so after 4,096 block creations new blocks go
unpublished. No log of ours shows the churn needed to reach that.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (no translator change)Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T13:04:43Z.
I tested
444a7509onb053a181with native Vulkan on an RTX 4070 SUPER (620.73.04) and the Ryzen 7800X3D iGPU (RADV 26.3.1).indirect_clamp_testpassed on both with Khronos synchronization validation enabled and zero validation errors. The replay-state-cache suite, SPIR-V storage classifier, arena-staging tests, and dropped-clamp test passed. A separate CPU replay fixture also verified that two read-only indirect draws can share a clamp pass across different attachments and still open separate rendering scopes. A direct storage-writing draw ended that window so the following draw got its own clamp pass.One small parser issue in
parse_external_windows_budget:std::strtoullaccepts a leading minus sign and negates in the unsigned result type. On this head,-18446744073709551615sets a 1 MiB cap, and-18446744073709551614sets a 2 MiB cap. Both should take the documented invalid-value path. The earlier parser used the same conversion. In a local test, rejecting a minus sign after leading whitespace fixed both cases and preserved the positive, zero, unset, and out-of-range controls.Synthetic CPU and GPU tests. AI-assisted (Codex).
Imported from ubiquitarianism/leonida. Originally posted by azsekazvamdimitar on 2026-12-03T13:13:49Z.
Thanks for testing on the 4070 SUPER and RADV with sync validation, and good catch on
strtoullwrapping signed inputs.Fixed in
bc5969f0a:parse_external_windows_budgetnow skips leading whitespace and requires a leading digit before callingstd::strtoull(rejecting-and+). Added-1,-18446744073709551615,-18446744073709551614, and+2048cases totest_external_windows_budget(verified red on444a7509dat-18446744073709551615, green after the fix; rebuilt Windowsgta6rtand rancheck_no_game_data.py).Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-03T14:46:49Z.
Ran natively on Windows 11, head
bc5969f0amerged into currentmain(128579e9e, clean merge).Nothing broke. I have one small Windows point about the env parser.
LEONIDA_EXTERNAL_WINDOWS_MBwith a trailing space. In cmd,set LEONIDA_EXTERNAL_WINDOWS_MB=64 && gta6rt ...stores the value as64, with the space (measured:echo [!VAR!]prints[64 ]).parse_external_windows_budget("64 ")returns no budget. Before, that line gave a 64 MiB cap.64MBbehaves the same way. This matches the comment ("anything but a whole number of MiB: no budget"), but the failure direction has flipped. A sloppy value used to still give you a cap, and now it removes the cap without saying so. Trimming trailing whitespace, or one log line when the variable is set but rejected, would cover it.Parser values (measured by calling the header function directly). The "before" column is
main'sstrtoull+mb > 0logic, reproduced in the same probe.0,001,010,409664,\t6464,64\n64MB,64M,1.5,1e30x1017592186044415(largest that fits after<< 20)17592186044416up to past u64Read, not run: the shim reads the variable into a 32-byte buffer, so a value of 32 chars or more is "no budget" too.
Tests (measured). MSVC, Ninja, RelWithDebInfo, only the five targets this PR touches. Validation on with
LEONIDA_VK_VALIDATION=1(the tests add sync validation throughVkValidationFeaturesEXT), plusVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LAYER_VALIDATE_SYNC=1. This SDK's layer flagsVK_LAYER_ENABLESas deprecated and says it overrides the new settings, so I didn't use it for these runs.mainmainindirect_clamp_testreplay_state_cache_testd3d12_indirect_rt_testLEONIDA_UPLOAD_SYSMEM=1arena_staging_testreplay_dropped_indirect_clamp_testThe GPU tests picked the discrete NVIDIA card. The PR's test files don't compile against
main's sources. All five fail on the API change (emittaking a span,writes_storage,parse_external_windows_budget), so I couldn't show red/green by swapping files. MSVC/W4: a clean rebuild of the five targets gives 276 warnings on both, with the same count for every warning code.Window edge cases (measured). Throwaway cases in the trace fixture of
replay_state_cache_test, with the PR'sreads_onlypipeline unless the row says otherwise:clamp2 begin_rp draw_ind draw draw_ind end_rpclamp1 begin_rp draw_ind draw end_rp clamp1 begin_rp draw_ind end_rpclamp3 begin_rp draw_ind draw_idx_ind draw_ind end_rpclamp2 begin_rp draw_ind draw_ind end_rpclamp1 ... end_rp clamp2 begin_rp draw_ind draw_ind end_rpclamp1 ... end_rp begin_q clamp2 begin_rp draw_ind draw_ind end_rp end_qmax_count0, indclamp2 begin_rp draw_ind draw_ind end_rp(no draw recorded for the middle one)clamp1 ... end_rp begin_pred end_pred clamp2 begin_pred begin_rp draw_ind draw_ind end_rp end_predclamp1 ... clamp1 begin_rp draw_ind draw end_rp clamp1 begin_rp draw_ind end_rpAll match the rules in the docs. A direct draw that writes closes the window the same way an indirect one does, so the next clamp still gets its full barrier.
Read, not run: the replay records no secondary command buffers and no suspending/resuming rendering scopes, so a window can't cross one. Clears,
BeginQueryandSetPredicationare commands, so a window ends before them, and a load op can't change mid-window. A statistics query starting mid-sequence is theBeginQuerycase, and the PR's 5c-3 covers the per-draw segments.Conflicts: four open PRs touch the same files. #3142 and #3160 merge cleanly on top of this. #3228 and #2580 have the same conflicts with this PR as with
main. This PR adds none.Not checked: the game, and the frame-time numbers in the docs. What "no budget" does once VRAM is full. A GPU count that clamps to zero inside a pass with several jobs. A counted indirect draw inside a window (in my fixture case the counted draw recorded nothing).
GPUs tested: one NVIDIA desktop card (native Vulkan).
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by moffington on 2026-12-03T15:11:56Z.
Ran synthetic tests only on PR 3331 at
bc5969f0a: native Linux clang build, RTX 3060 12GB, driver 615.78.08.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by azsekazvamdimitar on 2026-12-03T15:50:23Z.
Thanks for the Windows run, the edge-case fixture table and the conflict check. The trailing-space case is a real trap with
set VAR=64 && ....Fixed in
cc6a1acc0:parse_external_windows_budgetnow accepts whitespace on both sides, so64and\t64\ngive a 64 MiB budget again.64MB,1.5,1e3,0x10, signed values, a number too large to shift, or a value too long for the 32-byte read) is still ignored, but no longer silently: the shim prints one[rt] d3d12: LEONIDA_EXTERNAL_WINDOWS_MB is not a whole number of MiB; ignored, ...line. Unset, blank and0still mean no budget, with no message.test_external_windows_budgetcovers the trimmed values, the largest value that fits, and the rejected flag for each of those inputs. It fails at"64 "with the trim removed and passes with it. Rebuilt Windowsgta6rt; the docs line says the same.AI-assisted (Claude Opus 5.5).
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.