docs/running.md: regenerate the DirectStorage predictor profile after 2a491668a (DOCS-RUNNING-DSTORAGE-HISTORY-REGEN) #2502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2502"
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 Tyrannys on 2026-11-27T20:47:37Z.
Claimed in the coordination issue as: DOCS-RUNNING-DSTORAGE-HISTORY-REGEN (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7226672676)
What and why
2a491668afixed themissing-endpointBC7 tail requests (E_DSTORAGE_DECOMPRESSION_ERROR, #2019, #2396) in the fitter that writes the local DirectStorage predictor profile,<work>/shaders/bcpack/history.bcph. The runtime stage ofmake_game.pyregenerates that profile; a runtime built withcmakeorscripts/build_runtime.ps1directly keeps the older one, so the fix does not take effect. This adds a line to "Settings every platform needs" indocs/running.md: when to reruntools/build_dstorage_history.py, the command, and the load line that shows the new profile (4,406 of 6,144 BC7 endpoint fields instead of 4,228).Tested
Docs only.
python -I -m unittest discover -s tests -p "test_docs_*.py": 53 tests OK.The numbers in the text are from profile M (RTX 4070 SUPER 12 GB, NVIDIA 621.01, Windows 11, 64 GB), main
2859d0c9b+ open PRs, runtime built with cmake: with the old profile 7-8 decompression errors a run and the story load did not finish in 1,800 s (2 runs); after regenerating the profile 0 errors and the run reached the opening sequence (1 run). Regenerating took 11 minutes.GPUs tested: n/a (docs); the report above is from an RTX 4070 SUPER, NVIDIA 621.01, Windows 11
AI-assisted: yes (Claude Code)
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
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T03:23:27Z.
Independent review of
f390e9b1b17dca7ec44b58082b355221434556ce, merged locally withmain02f71ccfe(clean merge, no conflict).Machine: Windows 11 Pro 10.0.26300, Python 3.12.4. Docs-only change; no GPU involved.
What ran
python -I -m unittest discover -s tests -p "test_docs_*.py": 53 tests, 3 failures on the merge and the same 3 failures on plainmain02f71ccfe(test_docs_cli_flags,test_docs_python_deps(port_ctl.py),test_docs_repo_paths(docs/port_plan.md:164)). The failure output is identical apart from the worktree path, and none of it namesdocs/running.md. The pull request adds no failure; those three are red on currentmainwithout it.git diff --check origin/main...HEAD: clean.python -I scripts/check_no_game_data.py docs/running.md: clean.main:python -I tools/build_dstorage_history.py --helpaccepts the documented form (game,--out,--trainer).make_game.py:2659-2662regenerates<work>/shaders/bcpack/history.bcphwith--if-neededin the runtime stage. The fingerprint attools/build_dstorage_history.py:340-352hashes the fitter sources, so a fitter change triggers a new fit. A plaincmakeorscripts/build_runtime.ps1build never touches the profile. That matches the text.bcpack_history_trainis a runtime target (runtime/CMakeLists.txt:217, a dependency ofgta6rtat line 258), so<build>/bcpack_history_train.exeexists next togta6rt.exe.history-okdiagnostic atruntime/shims/dstorage.cpp:501-503("BC7 endpoint/index fields N/6144 ..."). 4,228 and 4,406 of 6,144 match the2a491668acommit message anddocs/directstorage.md:213.2a491668ais inmain.What did not run
build_dstorage_history.pyfits from the retail package's pools (<package>), which this machine does not have. So 4,406 / 4,228, the 11 minutes and the decompression-error counts are not reproduced here. They stay as reported in the linked claim comment, which does hold those numbers.Note (wording only)
docs/running.md:48: "(about 11 minutes here)". On this page "here" reads as measured by the maintainers, but the whole item is marked "reported by others". "(about 11 minutes on that machine)" would avoid the mix-up.No game data in the change or in this comment.
AI-assisted: Claude Code (Claude Sonnet 5.5)
Status: OK to merge. The text matches the code on
main, and the docs tests add no failure. The numbers cannot be checked without the package. Gain: real for anyone who builds the runtime without themake_game.pyruntime stage. Not a duplicate: the other open pull requests touchingdocs/running.md(#2554, #2511, #2417, #2392) change other sections.Imported from ubiquitarianism/leonida. Originally posted by aegish-zagi on 2026-11-28T22:50:51Z.
#2502 | head
f390e9b1b1(merged cleanly with current mainadfb3821a;git merge-tree --write-treerc=0) |python -I -m unittest discover -s tests -p "test_docs_*.py"| red on main: n/a (docs addition; the gap is absence, not a failing test) | green on PR: 53 tests OK — the same count the PR body reports | Linux, Python 3.12.3 | AI-assisted: yesDiff audit: +12 lines, one new bullet in
docs/running.md("The DirectStorage predictor profile"), nothing else touched;git diff --checkclean andcheck_no_game_data.pyscope is docs-only text with no game data.Claims checked READ IN CODE against main: commit
2a491668a("dstorage history: fit packed tails against decoded BCPack siblings") is on main;tools/build_dstorage_history.pyexists and takes--trainer;make_game.py(runtime stage, ~line 2659) does regenerate<work>/shaders/bcpack/history.bcphvia that tool with--if-needed, which is exactly the gap the bullet warns about for direct cmake / build_runtime.ps1 builds. The added issue links use the old repo name, matching this file's existing convention (7 such references already in running.md).Honest scope note: the run numbers (4,406 of 6,144 BC7 endpoint fields vs 4,228 before; 7–8 errors/run and the 1,800 s story-load timeout with the old profile vs none with the new one) are the author's measurements on an RTX 4070 SUPER with a local package — Profile Z here has no GPU and no game package, so I did not and cannot re-measure them; they are consistent with the code change they describe.
Verdict: holds up as a docs change — accurate against the code on main, tests green.
Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-29T04:28:03Z.
Review: COMMENTED
Static audit of head
f390e9b1bagainstb6bf3aa0b. I inspected the documentation checks and source. No tests, builds, profile generation, or GPU runs. The coverage numbers match the prior measurements recorded indocs/directstorage.md.docs/running.md:47) The--trainerexample can fail on Linux after the documented clang-cl/xwin build. That build produces a Windows trainer, andtools/build_dstorage_history.py:262launches the supplied executable directly. On a Linux host without a PE handler, generation stops before replacing the profile. Please omit--trainerin the Linux example so the script builds a host-native helper. The Windows example can use the prebuilt trainer.docs/running.md:48) A reader withLEONIDA_DSTORAGE_HISTORYpointing to an older sidecar will continue loading it after regenerating the default file.runtime/shims/dstorage.cpp:467gives the override precedence. Please tell readers with an override to regenerate the selected file or point the override at the regenerated profile.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T14:19:09Z.
Merged at head
f390e9b. Docs-only. Checked by TheGeogeo (Windows 11) and aegish-zagi (Linux) on this head:test_docs_*.py53 tests, no new failure against main. AI-assisted: yes.