fix(vk): on Most the Builder's progress bar leaves the prediction's part out; its check runs All and Most #164
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/upscaling
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!164
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/prepare-bar-most"
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?
Why
Since #158 the default is Most, and main fails one test:
tests/test_prepare_cache_save.pycompiles the Builder's preparation path with stubs and has nocompile_all(). Testing Most also found that the Builder's progress bar jumps by the prediction's share on Most after a fresh preparation.What changed
started_up()ingpu/vk/vk_main.cpp(the Builder's--prepare-shaderspath) takes the predicted pipelines' part out of the progress bar whenever the prediction does not run. Before, it did so only when the seed was already prepared, so on Most after a fresh preparation the step to the noted pipelines counted that part done at its guess.tests/test_prepare_cache_save.pygetscompile_all()and runs every case with All and with Most: what runs (All predicts after a fresh seed, Most never) and the bar's values.Flags and settings
None.
Measurements
The fix's measurement is its test: a check that fails on
mainand passes here.main:
1d6b832a(2026-11-13)this PR: fix/prepare-bar-most @
539b7c14Hardware: RTX 3090, Linux, 24 threads
Method:
python -I -B tests/run_all.py1d6b832a539b7c14compile_allundeclared)Testing
Tested: the full game-free suite on Linux, as above; the new cases of the check on All and on Most.
Not tested: the bar in the Builders' windows by eye; a Windows build (the change is four lines of portable C++ in the renderer, no host code or paths).
Needs other testers: None (the change is the bar's arithmetic, which the check covers).
Screenshots
Nothing on screen beyond the bar's value, which the check covers.
Risk and rollback
At worst the Builder's bar is off; the preparation itself does the same work. Reverting the commit is enough.
Issues
See #158
Checklist
For everyone
type(scope): description).main.python -I -B tests/run_all.pyrun and passing (any failure that also fails onmainis named above).third_party/untouched (a new folder with aPROVENANCE.mdinstead).If applicable
Assisted-by:/Co-Authored-By:trailers.mainand passing here.tests/that reads changed source updated in this PR, not weakened.WIP: fix(vk): on Most the Builder's progress bar leaves the prediction's part out; its check runs All and Mostto fix(vk): on Most the Builder's progress bar leaves the prediction's part out; its check runs All and Most