runtime: name the missing BCPack predictor instead of a blank picture (BCPACK-PREDICTOR-DIAGNOSTIC) #1660

Open
github-bot wants to merge 1 commit from github-bot/gh-1660 into main AGit
Owner

@⁠slauko on GitHub · 2026-11-25 07:26 UTC · original
slauko:bcpack-predictor-diag → main · +59 −3 · 4 files · 1 commits · open

Claimed in the coordination issue as: BCPACK-PREDICTOR-DIAGNOSTIC (#1608).

What and why

docs/linux_proton.md lists three setup mistakes that each give a blank or empty picture. Two are owned elsewhere (#1528 for SDL3/input, #387 for the executable's embedded shaders); the third is the missing BCPack predictor profile. The runtime already opened <work>/bcpack/history.bcph and fell back silently, and the runtime stage generated it with tools/build_dstorage_history.py --if-needed without checking the result.

  • The runtime's DStorage open line now names the expected path (or LEONIDA_DSTORAGE_HISTORY), the generator, and the consequence (loading art and most BC7 textures stay empty).
  • The runtime stage warns when the generation did not leave the profile behind.

No behaviour change: an existing profile is loaded exactly as before, and an absent one keeps the built-in codec policy; only the message and the warning are new.

Tested

  • python -I tests/test_make_game_dstorage_profile.py — 2 tests: a missing profile names the path, the generator and the BC7 consequence; a present profile returns no hint.
  • python -m compileall -q make_game.py tests/test_make_game_dstorage_profile.py
  • python -I tests/test_make_game_argparse.py — unchanged and green.
  • The C++ change is a string in an existing log_once; the Windows runtime CI compiles it.

No game data: the tests use an empty temporary directory and a synthetic BCPHIST1 file.

AI-assisted: yes.

**@⁠slauko** on GitHub · 2026-11-25 07:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1660) `slauko:bcpack-predictor-diag` → `main` · +59 −3 · 4 files · 1 commits · open Claimed in the coordination issue as: BCPACK-PREDICTOR-DIAGNOSTIC (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608). ### What and why `docs/linux_proton.md` lists three setup mistakes that each give a blank or empty picture. Two are owned elsewhere (#1528 for SDL3/input, #387 for the executable's embedded shaders); the third is the missing BCPack predictor profile. The runtime already opened `<work>/bcpack/history.bcph` and fell back silently, and the runtime stage generated it with `tools/build_dstorage_history.py --if-needed` without checking the result. - The runtime's DStorage open line now names the expected path (or `LEONIDA_DSTORAGE_HISTORY`), the generator, and the consequence (loading art and most BC7 textures stay empty). - The runtime stage warns when the generation did not leave the profile behind. No behaviour change: an existing profile is loaded exactly as before, and an absent one keeps the built-in codec policy; only the message and the warning are new. ### Tested - `python -I tests/test_make_game_dstorage_profile.py` — 2 tests: a missing profile names the path, the generator and the BC7 consequence; a present profile returns no hint. - `python -m compileall -q make_game.py tests/test_make_game_dstorage_profile.py` - `python -I tests/test_make_game_argparse.py` — unchanged and green. - The C++ change is a string in an existing `log_once`; the Windows runtime CI compiles it. No game data: the tests use an empty temporary directory and a synthetic `BCPHIST1` file. AI-assisted: yes.
The runtime's DStorage open path names the expected profile (LEONIDA_DSTORAGE_HISTORY or <work>/bcpack/history.bcph), the generator tools/build_dstorage_history.py, and the consequence: loading art and most BC7 textures stay empty. The runtime stage warns when --if-needed did not leave the profile behind. No behaviour change; synthetic tests only.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:59:45 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 08:24 UTC · original

Independent verification (native Windows): diagnostics-only change (log string + make_game warning). test_make_game_dstorage_profile.py 2 tests OK; ctest -R dstorage passes on both RTX 4070 SUPER and AMD gfx1036 iGPU. AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 08:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1660#issuecomment-7156993548) Independent verification (native Windows): diagnostics-only change (log string + make_game warning). `test_make_game_dstorage_profile.py` 2 tests OK; `ctest -R dstorage` passes on both RTX 4070 SUPER and AMD gfx1036 iGPU. AI-assisted verification.
This pull request has changes conflicting with the target branch.
  • docs/linux_proton.md
View 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.
git fetch -u origin '+refs/pull/1660/head:github-bot/gh-1660'
git switch 'github-bot/gh-1660'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1660'
git switch 'github-bot/gh-1660'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1660'
git switch 'github-bot/gh-1660'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1660'
git switch 'main'
git merge --squash 'github-bot/gh-1660'
git switch 'main'
git merge --ff-only 'github-bot/gh-1660'
git switch 'main'
git merge 'github-bot/gh-1660'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.