d3d12 launcher: title memory windows in the card's memory on cards of 20 GB or more (D3D12-LAUNCHER-WINDOWS-BAR-LARGE-CARDS) #3413
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u"d3d12-launcher-windows-bar-large-cards:Rockcabbage-d3d12-launcher-windows-bar-large-cards" git switch "Rockcabbage-d3d12-launcher-windows-bar-large-cards"
Open
leonida/mandy
Rockcabbage
wants to merge 5 commits from
Rockcabbage/mandy:d3d12-launcher-windows-bar-large-cards into main
pull from: Rockcabbage/mandy:d3d12-launcher-windows-bar-large-cards
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3413
Loading…
Reference in a new issue
No description provided.
Delete branch "Rockcabbage/mandy:d3d12-launcher-windows-bar-large-cards"
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?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Claimed in the coordination issue as:
D3D12-LAUNCHER-WINDOWS-BAR-LARGE-CARDS(claimed in #2570; #3312 continues that issue)Overlaps: #3035 (open). It changes the same lines of
d3d12/scripts/play-nvidia.ps1andd3d12/README.md, sowhichever lands second needs a rebase. The two do not overlap in what they decide: #3035 is about cards under 12 GB,
and this one about cards of 20 GB or more.
mainat312d88d1d.d3d12-launcher-windows-bar-large-cardsat1b7a99e32.This touches
play-nvidia.ps1andtests/test_win_launchers.py, so per AGENTS.md it asks for @OreoFR's review.What and why
play-nvidia.ps1setsLEONIDA_WINDOWS_BAR_MBonly on PCs with under 48 GB of RAM. With more, the title's windows ofmemory (4 to 5.4 GB here) stay in the PC's memory, and the card reads them over the bus. On an RTX 4090 with 64 GB of
RAM, that showed as a card 99 % busy at 150 W and 47 C, and as starts that stood at 45 to 52 ms where others stood at
36.
The change: a card of 20 GB or more now gets
LEONIDA_WINDOWS_BAR_MB=8192, whatever the RAM.-WindowsBarMBstill overrides it, and 0 turns it off.LEONIDA_WINDOWS_BAR_LINE, 80 hundredths of thecard's budget unless set. The launcher does not set the line. The cap is 8192 so that the cap is not what stops the
windows.
$vramthatmain's other rules use: the largest adapter'sHardwareInformation.qwMemorySize.findings.mdand the script's comments say the new rule.Measured
These measurements were taken before the move, on the earlier head (the same diff on the main of that time). They were
not taken again on this base.
The setup: RTX 4090 (24 GB, resizable BAR), i9-13900K, 64 GB of RAM, Windows 11, Series X profile, 2560x1440,
-HardwareRT -NoFrameGen, diag build.The setting is read at the start, so it cannot be switched by turns inside a run. Starts from the same save were
taken in turn instead. Starts with the same settings differ on this PC (36 to 52 ms standing at one place over the
day), so each start is listed.
LEONIDA_WINDOWS_BAR_MB=8192line says so).
What the windows on the card take away is the slow starts.
(https://git.leonida.now/leonida/mandy/issues/3312#issuecomment-8164). On an RTX 3090 with 64 GB of RAM, 8192
against 0 gave -2.4 to -7.9 ms a frame (A B B A) and peaked at 21.4 GB of card memory.
cap does nothing), and a PC where
-Adapterpicks a smaller card beside one of 20 GB or more. In that last case thesmaller card gets the cap too, and the runtime's line, on that card's own budget, is what holds the windows.
Tested
On this branch, on
main312d88d1d:python -I tests/test_win_launchers.py: 16 tests OK.test_nvidia_windows_bar_follows_card_memory_then_ram.main's frame generationtest does.
not set with 64 GB); a 4 GB card (not set); card memory unknown (by RAM); and
-WindowsBarMB 0and4096(thesewin).
main'splay-nvidia.ps1, the test fails on the three cases of 20 GB or more (3072 or not set,against 8192). With this branch's script it passes.
python -m unittest discover -s tests -p "test_docs_*.py": 59 tests OK.python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: passes. The file is regenerated with the tool, because thescript's comment now names
LEONIDA_WINDOWS_BAR_LINE.python -I scripts/check_no_game_data.pyon the changed files: exit 0.GPUs tested: NVIDIA GeForce RTX 4090, driver 621.24, Windows 11 (CPU: Intel i9-13900K)
AI-assisted: yes. Claude Code; Claude Fable 5.2 directing, Claude Opus 5.5 writing and reviewing.
README's statement of the rule, a test of the automatic branch, and consistent numbers.
LEONIDA_WINDOWS_BAR_LINEin the comment, says what happens with-Adapter, rewraps two long comment lines, and regeneratesswitches.md.Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
A second read-only review of this branch (Claude Opus 5.5), and what changed for it. The head is now
6bcbdc874, withmaina9361504amerged in; the hashes in the description are older.Fixed (
ddc481ba9)20GBthat case fails (not set, against 8192). Green with 19 GiB.python -I tests/test_win_launchers.pyon the merged head: 17 tests OK.What the review checked
-WindowsBarMB(0 too) wins, then a card of 20 GB or more, then the rule by RAM; a card under 6 GB gets nothing; unknown card memory falls to the rule by RAM.Corrections to the description
switches.mdas well as inplay-nvidia.ps1andREADME.md.LEONIDA_WINDOWS_BAR_CARD_MIN_MB), because$vramis the largest adapter's. This change's large-card branch sets no such minimum. So where-Adapterpicks a card under 12 GB beside one of 20 GB or more, that card would get the 8 GB cap, which is the case #3035 measured as harmful on a 10 GB card. If #3035 lands first I will rebase and set the minimum in the large-card branch too; if this lands first, that line belongs in #3035's rebase. Tell me which you prefer.🤖 Generated with Claude Code
A read of this branch at
6bcbdc874and a check on the kind of PC it is for (64 GB of RAM, a 24 GB card), next to EdenBendheim's VERIFY-3413-RTX3090 on a 32 GB PC. This is a plain comment, not a review approval.What I checked
play-nvidia.ps1, the README,findings.md,switches.mdand the new test.-WindowsBarMBwins, 0 included, and-Morestill comes after it. Next comes a card reported at 19 GiB or more, then the rule by RAM. A card under 6 GB cannot reach the large-card branch. A card whose memory is unknown (0) falls to the rule by RAM, as onmain.-More, no saved F1 file):LEONIDA_WINDOWS_BAR_MB=8192, with the line saying 24 GB of video memory and up to 8 GB of windows;main(44c480a5f): noLEONIDA_WINDOWS_BAR_MBline, so the runtime's 0.python -I tests/test_win_launchers.pyon this head, on Windows 11 with Python 3.13: 17 tests OK,test_nvidia_windows_bar_follows_card_memory_then_ramamong them.Measured on this PC, the case this pull request changes
RTX 3090 24 GB, 64 GB of RAM, NVIDIA 621.40.
LEONIDA_WINDOWS_BAR_MB=8192against 0 (whatmaingives this PC), A B B A, 600 s runs from one warmed-up save, medians from 150 s:The card was the limit in both arms (97-99 % busy). With 8192, every window went to the card's CPU-mapped memory, and the runtime turned none down at its 80 % line.
Headroom on a 24 GB card
nvidia-smi), and the process's own dedicated memory at 16,900 MiB. No device was removed and no window was turned down.Gaps I see (none blocks this change)
-Adapter.$vramis the largest adapter's, so a smaller card picked next to one of 20 GB or more gets the 8 GB cap too, with only the 80 % line to hold it. #3035 measured on a 10 GB card that this line alone does not keep room for the textures. #3396 (open) makes$vramfollow-Adapterand the DXGI#Nindex. With it the large-card branch would judge the card the runtime takes. Whichever of the two lands second should keep that.findings.md(3072 against 0) was a run where the card worked 68 to 73 ms of a 93 ms frame, so it was not the limit. The 16 GB card where 6144 moved nothing had 4.4 GB taken by other programs. An A B B A on a 16 GB card, card-bound (Series X with DLSS quality), would show whether the 19 GiB line can come down, with #3035's card minimum as the guard.AI-assisted: yes (Claude Code, Claude Opus 5.5). The measurements are ours, on the PC above.
Home RTX 3090 check of current head
6bcbdc874againstmainf22b9fa64.Host: NVIDIA RTX 3090 24 GiB, driver 610.88; Windows 11, Ryzen 9 5900X, 32 GiB RAM. Fresh Rust 1.98.1
diagbuild withdiagnostics,dlss,mimalloc; identical compiled runtime inputs and binary for both exact launcher scripts.Important limits: both processes reported GPU-upload support unavailable, explicitly said their 8192/3072 MiB caps had no effect, and reported zero card-mapped windows. This is launcher/fallback stability evidence, not active VRAM-window validation or a performance benefit. Candidate had 25/25 near-location marks; main had 5/33 before a late position overwrite. Shared shader history and unequal location/draw history preclude a matched FPS comparison. Neither leg proves 300 seconds continuously at the destination. No visual-correctness approval. The existing selected-smaller-adapter interaction remains outside this host's coverage.
One initial candidate attempt was stopped during loading after its final preflight overlapped launch; zero world seconds, excluded from the completed pair. It is preserved as an operator preparation error, not a runtime failure.
AI-assisted: GPT-6.1 Sol (xhigh), including an independent read-only source/evidence review. This reports launcher/fallback stability only.