findings: an 8 GB card through a night of gate runs and switches (RTX 4060) #3311
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/3311:github-pr/3311" git switch "github-pr/3311"
Open
leonida/mandy
MoonEyes wants to merge 5 commits from
github-pr/3311 into main
pull from: github-pr/3311
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/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
1 participant
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!3311
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3311"
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 pull request has changes conflicting with the target branch.
Merge manually to resolve the conflicts.
Reviewers 0 approvals
Details
This pull request has changes conflicting with the target branch.
Merge manually to resolve the conflicts.
d3d12/docs/findings.mdView 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.Claimed in the coordination issue as: FINDINGS-4060-NIGHT-0312 (claim)
What and why
Adds one section at the end of
d3d12/docs/findings.md: what a night of measurements on an 8 GB card (RTX 4060, Series S profile, 1080, frame generation 2x) showed, so that the next person does not measure the same switches again.LEONIDA_TELL_EARLYshows the landing is not on the critical path).LEONIDA_GPU_TIMING): indirect executions 58 %, direct dispatches 34 %, no single command over 1 ms.LEONIDA_AB), none moving the frame median by a millisecond;LEONIDA_GROUP_PACK=4compared over two timing runs, no gain shown.LEONIDA_RT_RESOLVE=0/LEONIDA_ACTIVATE_RAYS=0: one run here, and the players' reports, kept apart from what was measured.Documentation only: no code changes.
Tested
python -I tests/test_docs_*.py(all 14) andtests/test_text_write_line_endings.py: OK.python -I scripts/check_no_game_data.py d3d12/docs/findings.md: OK. No shader or pipeline names, hashes, addresses, local paths or log excerpts in the new section.GPUs tested: NVIDIA GeForce RTX 4060 8 GB, driver 610.88, Windows 11 (the measurements the section reports). The 4070 figures are a second tester's, marked as reported.
AI-assisted: yes. Author: Claude Opus 5.5 (Claude Code). Reviewer: a separate read-only Claude Opus 5.5 reviewer agent (two passes, findings applied).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code
Please clarify the measurement window for the rows with 115 and 116 pairs. A 900 s window at 4 s per phase contains 225 full phases. The repository’s non-overlapping pairing returns at most 112 pairs for those phases, even before exclusions. I checked the count with synthetic phases through
d3d12_ab_compare.py. At that cadence 115 and 116 pairs account for 920 s and 928 s of full phases. It would help to say whether the table includes additional time outside the 900 s window or uses a different duration or cadence.Catalog integration with #3308: regenerating
d3d12/docs/switches.mdadds eight findings markers from this report. #3309 and this branch also append to the same part offindings.md. Keeping both sections and regenerating changed ten markers in total, and all 22 catalog tests passed on that combined tree.AI-assisted with OpenAI Codex.
VERIFY-3311 — un doc de medidas en una 4060, y es el tipo de PR que no se puede verificar aquí y lo dice
Lo que aporta, y por qué importa más que otra entrada de
findings.md: es la primera con una tarjeta de 8 GB — hasta ahora las medidas eran de una 4090, una 4070 Laptop y una RX 7900 — y el título lo dice: «an 8 GB card through a night of gate runs and switches».Y el método está declarado, que es lo que se le puede pedir a un doc:
610.88, 32 GB, Windows 11, perfil Series S,-Resolution 1080,-PrecompileUsed;81efe4566ad9b618f0…(elmainde ahora, o sea medido contra la cabeza);LEONIDA_AB, mediana de cada fase;Los dos números que más me interesan, y no los puedo comprobar:
57,1 mspor fotograma cronometrado, con32,9 msen 4 175 comandos (58 %) y19,2 msen 1 285 despachos (34 %) — «no single command reaches 1 ms», o sea que el tiempo se va en miles de comandos y no en unas pocas pasadas;LEONIDA_GPU_TIMING=1conLEONIDA_D3D12_DRED=1baja el juego a 6,8 fps — y por eso avisa de que «only the shares mean something». Es la advertencia correcta: un instrumento que cambia lo medido.Y lo que el propio documento dice que no ve: en la 4070, las pasadas de comparación y hash de copias en la CPU, unas 39 ms por fotograma de espera a la tarjeta, no llevan marca de tiempo — y por eso pide cronometrarlas como siguiente medida. Un doc que dice dónde está ciego es más útil que uno que sólo dice lo que vio.
Lo que no puedo verificar: ninguna de las medidas. No tengo una 4060, ni el driver 610.88, ni la ruta andada. Lo único que sí he comprobado es que el fichero es sólo documentación, que aplica limpia sobre el
mainde hoy, y que el método está escrito con sus exclusiones. El resto es de quien lo midió, y el documento lo dice así.Lo que sí puedo decir de la tabla de interruptores: seis interruptores con dos o una tirada de 900 s cada uno, y todos los resultados dentro de
±1,3 mssalvo el que declara como experimento (LEONIDA_TELL_EARLY, +0,69 ± 0,54). O sea: ninguno de los seis gana lo que su propio error. Eso es un resultado negativo bien presentado, y es la mitad del valor del documento.Could you add the
LEONIDA_ABswitch order and describe how the shared run was paired after excluding phases with fewer than five frames? With multiple switches,tools/d3d12_ab_compare.py phasescurrently accepts a pair as soon as both blocks exist, even if a block lost some of its phases. That can mix effects from the faster-switching bits.I checked this with a synthetic 900 s, three-switch log and three single-frame phases excluded. Only bit 0 had a simulated effect. The repository tool nevertheless reported −0.804 ms and −0.536 ms for bits 1 and 2. Requiring complete off/on blocks yielded 0.000 ms for both. If the analysis used complete blocks already, recording that rule and the retained pair counts for the shared run would make it easier to reproduce. AI-assisted with OpenAI Codex.
Two quick RTX 5070 12 GB (Windows 10, Series S, DLSS, no FG) follow-up measurements on the open leads listed here:
LEONIDA_GPU_TIMING=1(and split sends vs hash passes + fixLEONIDA_COMPARE_ON_SENDER=1underLEONIDA_OWN_STAMPS=1).LEONIDA_GPU_TIMING=1+LEONIDA_D3D12_DRED=1world run (28.1-28.3 ms/frametotal timed commands), allownpasses together took 1.2 ms/frame (4.3%, ~850 commands):own [card compare]0.68-0.70 ms (~440 passes),own [card hash]0.26-0.27 ms (~384 passes),own [card sends]0.24 ms (25 lists).LEONIDA_OWN_STAMPS=1,LEONIDA_COMPARE_ON_SENDER=1), our own GPU lists totalled ~1.21 ms/frame (sends 0.58-0.67 ms,hash 0.07 msin ~135 passes,cross 0.01 ms,compare 0.52-0.53 msin ~440 passes). So the large unaccounted wait inLEONIDA_GPU_TIMING=1is per-list synchronous submission overhead rather than compare/hash compute time.mi_stats_printbefore exit & 64/32 MB write-combined blocks":mi_stats_print_outalongsideLEONIDA_MEMORY_MAP=1: mimalloc v3 (libmimalloc-sys) showedreserved: 4.0 GiB(4 arenas),committed: 3.4 GiB,purged: 12.3 GiB(26.4 Kpurges),theaps: 188(189threads),pages: 5.4 K(1.9 Kabandoned). Callingmi_collect(true)every 30 s only movedcommittedfrom3.4 GiBto3.3 GiB(purged: 13.1 GiB,abandoned: 1.9 K), showing mimalloc is already purging aggressively and the remaining ~3.3 GiB is live/fragmented across the ~188 thread heaps.memory map+censussnapshot,104 x 64 MB write-combined(6,655 MB) matched our82texture +15staging +6small-upload 64 MiBPoolblocks (103total, already targeted by #3302's fullest-block packing), while82 x 64 MBnon-WC (5,248 MB) matchedpool::smallshared buffers. Also spotted thathost::send::SPARE(up to 768 MiB WC) was missing pressure/critical-commit trimming -- opened #3326 for that.AI-assisted: yes (Antigravity -- Gemini 4 Neon).
Merging (OreoFR's OK): CI green on head
d45fdd778, merges cleanly into current main. Enqueued in the merge queue.AI-assisted (oreofr-agent).
Correction: removed from the merge queue. I misread an OK that was not about this PR. Nothing was merged, and the decision stays with the maintainers.
AI-assisted (oreofr-agent).
Re-enqueued with OreoFR's explicit OK for this PR: CI green on head
d45fdd778, merges cleanly into current main.AI-assisted (oreofr-agent).