docs: keep fxceless builds aligned with mimalloc path (DOCS-D3D12-MIMALLOC-BUILD) #2755
Open
github-bot
wants to merge 1 commit from
github-bot/gh-2755 into main
AGit
pull from: github-bot/gh-2755
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
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
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2755
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2755"
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?
@j-weiner on GitHub · 2026-11-30 15:47 UTC · original
j-weiner:docs/d3d12-mimalloc-build→main· +5 −3 · 1 files · 1 commits · openClaimed in the coordination issue as: DOCS-D3D12-MIMALLOC-BUILD
Depends on: none
Fixes: none
What and why
The fxceless runtime guide documented release and diagnostic builds without
mimalloc, while the maintained NVIDIA build script enables it. The commands now include the feature, and the guide explains the parity/performance reason so users do not accidentally choose the slower system allocator for cold shader translation.Tested
git diff --check— passed.python -I scripts/check_no_game_data.py d3d12/docs/README-fxceless.md— passed.GPUs tested: n/a.
AI-assisted: yes.
Checklist
mainand merges cleanly.@merzleckeier on GitHub · 2026-11-30 16:08 UTC · original
Independent Windows-target build check for the Mimalloc commands
MEASURED. I checked
69855ca6merged ontomain1cce3c89(tree6f9d5f24). On CachyOS I built both documented feature combinations forx86_64-pc-windows-msvcusing Rust 1.98.1, the local Windows SDK, clang-cl for C dependencies and lld-link. The verification added--locked --offline.--release -p leonida --features mimallocproduced a Windows x64 executable. Its linked Rust allocation entry point jumps directly tomi_malloc_aligned.--profile diag -p leonida --features diagnostics,mimallocalso produced a Windows x64 executable. Its allocation entry point goes throughcopystat::Counting::alloc, which callsmi_malloc_aligned.leonida.exe --helpexited 0 under Wine 11.22 for both builds. The diagnostic executable includes thereplaycommand. The earlier guide's feature combinations kept Mimalloc out of the corresponding Cargo dependency trees.A second agent independently checked the linked binaries, PDBs and feature graphs and reran the Wine smoke checks. CPU-only build and CLI smoke test using no game files. AI-assisted with OpenAI Codex.
@KelboLive on GitHub · 2026-12-01 05:56 UTC · original · reviewed
The commands are valid —
mimallocis a real opt-in feature (d3d12/apps/leonida/Cargo.toml:26-39, withdefault: []incargo metadata), so this is not a renamed-option bug and both edited commands run against existing features and profiles.The reason is wrong, though, and that is the part that will be quoted:
d3d12/scripts/build-nvidia.ps1:14-15) — not "the system-heap cost on every cold shader translation" (line 237). A repo-wide search forcold shaderfinds only your new line. Quote the measurement, or drop the mechanism;AGENTS.md:67-72asks exactly that of a D3D12 frame-rate claim.:158-159), and both of your edits are below that line. Either update that sentence or move the commands above it.build-nvidia.ps1" is allocator-only: that script builds--profile diag --features diagnostics[,dlss],mimalloc(:16,:19,:25), whiled3d12/Cargo.toml:81/:88andd3d12/docs/replay.md:11still saydiagnosticsalone, andd3d12/README.md:403-404describes the same script without mimalloc. Say "the same allocator", or align those three places too (and note the script also passes--locked, which the edited commands do not).fxcelessfeature or target in anyCargo.toml. Fine as prose, but not as a build instruction.Also: the branch is 262 commits behind main, so the "Based on current
main" box is not true today; merge main in before this lands. Links and paths all resolve; the only style wart is that the newd3d12/scripts/...path is repo-root-relative in a page whose other links are doc-relative.@aslan2142 on GitHub · 2026-12-01 11:00 UTC · original · requested changes
The
--features mimalloc/--features diagnostics,mimallocbuild commands themselves are valid, but requesting changes on two factual inaccuracies flagged by @KelboLive:d3d12/docs/README-fxceless.md:235-237): The added text cites "avoid paying the system-heap cost on every cold shader translation", whereas the actual measured reason ind3d12/scripts/build-nvidia.ps1:14-15is per-frame heap overhead on the submitting thread ("a quarter of the submitting thread's running time was in the heap (profile of 2026-11-27), and the same view took 95 ms a frame against 78 with it"). PerAGENTS.md, please quote the measured basis rather than inventing an unmeasured mechanism.d3d12/docs/README-fxceless.md:158-159): Both edits fall below the line stating "Everything below this line is upstream VIctory's own README, unchanged". Please either update that notice or document themimallocbuild commands above it.(AI-assisted review.)
@imShangLi on GitHub · 2026-12-01 16:31 UTC · original
VERIFY-2755 — Linux, Fedora 45, Rust 1.98.1, no GPU device, no game files
Verdict: PASS. Every factual claim in the new text checks out against the code — the feature exists, the build script uses it, and it does change the allocator. One phrase in the rationale attributes the cost to something other than what the repository's own measurement says.
Head
3e74b0d7, base the currentmain88a9f133, merge base3e74b0d7, 1 commit, 1 file, +5/−3:d3d12/docs/README-fxceless.md.1. The change
Two build commands in the archived upstream README gain
--features mimalloc:and the text above them says the feature "selects the process allocator used by the NVIDIA build path; keep it enabled for parity with
d3d12/scripts/build-nvidia.ps1".2. The feature exists, and it reaches the allocator
The chain from the command line to the
#[global_allocator]is complete:One thing worth checking, because the
cfgabove looks at first glance like it would skip the allocator on the NVIDIA path: on Windows withdiagnosticsthe#[global_allocator]is not installed, butcopystat's counting allocator is, and it wraps mimalloc:So both build lines in the pull request do put mimalloc behind the process's allocations: the release build uses it directly, the
diagbuild uses it through the counter.3. The parity claim holds
d3d12/scripts/build-nvidia.ps1builds with exactly these features:and the
diagprofile exists ([profile.diag] inherits = "release"ind3d12/Cargo.toml:83), so the second command line in the pull request is a valid one.4. The repository's own measurement of the same thing
build-nvidia.ps1carries the note the pull request is paraphrasing:5. One phrase to reconsider
The new text says the feature is worth having "to avoid paying the system-heap cost on every cold shader translation". The repository's own measurement does not say that: it attributes the heap cost to the submitting thread's running time and to a frame (95 ms against 78 ms) — not to the shader translation. The translation is not something the measurement isolates.
The direction of the claim is right (the system heap is expensive here, and mimalloc is what the NVIDIA build uses), but the place the cost is attributed to is narrower than, and different from, what the repository measured. I would either say "on the submitting thread" as the script does, or leave the reason to the script's comment.
6. The document tests are green
The repository has a documentation check suite, and this pull request changes a document:
7. What I did not check
apps/leonidadepends onleonida-gpu,leonida-hleandleonida-loader, which do not build on Linux for reasons that predate this pull request (upstream: "The crates are Windows-only today … Linux follows #2577"), so I did not runcargo build --release -p leonida --features mimalloc. I checked the feature graph and the#[global_allocator]instead, which is what decides whether the command line has the effect the document claims.fxceless/victory-forkREADME's own caveat — it opens by saying it is kept "for its description of upstream, the commands and the debugging switches" and that "what it says of speed and state is of that fork and another PC". The two commands the pull request touches are among those commands, so keeping them aligned is the document's stated purpose. I did not check the rest of that document for other stale commands.AI-assisted: MiniMax M3.1 Flash.
@MoonEyes on GitHub · 2026-12-02 18:29 UTC · original
Verification of #2755 (DOCS-D3D12-MIMALLOC-BUILD): third-party run on Linux x86_64, no game files.
69855ca65, merge base3e74b0d7d, merged locally (detached, clean merge) intomain45dc41f95. Diff:d3d12/docs/README-fxceless.md, +5/-3.Commands and results
python -m unittest discover -s tests -p "test_docs_*.py": 57 tests, OK.python -I scripts/check_no_game_data.py d3d12/docs/README-fxceless.md: clean.apps/leonida/Cargo.tomldefinesmimalloc = ["leonida-hle/mimalloc"], off by default.d3d12/scripts/build-nvidia.ps1:16-19builds withdiagnostics,mimalloc(plusdlss). Both new commands name valid feature sets.Notes (non-blocking)
README-fxceless.md:235-237gives the reason as "to avoid paying the system-heap cost on every cold shader translation". The repository measured something else:build-nvidia.ps1:14-15attributes the cost to the submitting thread (95 ms a frame against 78 ms). Suggest quoting that measurement instead.d3d12/README.mdinstead.blockedstate only means an approving review is still missing.Verdict: ready, with the wording nit above.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@MoonEyes on GitHub · 2026-12-02 22:01 UTC · original
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).
@fiestorra on GitHub · 2026-12-03 03:33 UTC · original
VERIFY-2755 — el
featureexiste, y el documento dice por qué activarloUn fichero,
d3d12/docs/README-fxceless.md, +5/−3, nueve días abierto.Lo comprobable de una línea de comando en un documento es que la bandera exista:
Así que
cargo build --release -p leonida --features mimalloces un comando que el crate acepta, y el cambio añade la bandera que faltaba a la receta del documento.Y lo que el texto añade es la razón, que es lo que hace que un documento sirva:
«paridad con el script que sí lo activa» y «el coste del heap del sistema en cada traducción en frío» — dos razones, una de consistencia y una de rendimiento, y la de consistencia es la que evita el fallo real: un build de documento y un build de script que producen binarios distintos y nadie sabe por qué.
Lo que no probé: que el rendimiento sea distinto — eso necesita el título y una traducción en frío medida, y el documento no promete un número, sólo el motivo.
Y lo único que le pediría: que
build-nvidia.ps1y este documento se nombren mutuamente — si el script es la fuente de verdad de la receta, el documento debería decirlo en esa línea, y si el documento es la fuente, el script debería citarlo. Hoy cada uno describe la bandera y ninguno apunta al otro.Written with an AI assistant.
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.