ProjectScarlett start menu: compute roots, faster compiles, watchdog pause #216
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!216
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-216"
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?
@bbijsterbosch on GitHub · 2026-11-26 08:50 UTC · original
bbijsterbosch:projectscarlett/start-menu→main· +1667 −103 · 57 files · 12 commits · draftSummary
With this branch, ProjectScarlett 1.0.2.1 boots to its start menu on an NVIDIA laptop GPU under GE-Proton11-14. When the menu was up, no stand-in pipeline was bound (
null usage … compute=0 raster=0).Stand-ins remain during boot. 288 distinct stages had no translation (207 compute, 45 pixel, 32 mesh, 4 vertex). With the default 20 s deadline, many large compute pipelines also returned a stand-in while their driver compile went on.
The run used these twelve commits on
ac4f099. They are now rebased ontomain(773278a) without conflicts. Each commit builds on its own and passes the translator tests. The only addition to the build that ran is a one-line test fix (a missingstridesfield in an inline-arena test initializer).Translator (
xshader)s_getpc/s_add_u32/s_addc_u32/s_setpclong jump with a provable target becomes a branch. A waterfall loop that gives each lane the value of the lane it names becomes a single group gather through the compute swizzle exchange.row_shradds,v_permlanex16, upper-row add) becomesWavePrefixSum. A select-then-copy into the accumulator is first merged into one select.s_cselect/s_addc/s_subbare accepted when SCC came from plain data.|andj = j | (c). The resolve kernels' unoptimised DXIL has a third fewer blocks, and DXC optimises them in 45 s instead of 83–110 s.t1, space32766in the root, heap-loaded buffer descriptors get word 1 (the stride) from the runtime, so heap-indexed IDXEN accesses translate.Runtime (
d3d12,dxbc)clzeroloops. On hosts without CLZERO, every call used to trap five times, about four million exceptions in half an hour.Both title patches write nothing unless the code matches 1.0.2.1 byte for byte.
TUXBOX_KEEP_TITLE_WATCHDOG=1keeps the watchdog.Launcher
VKD3D_SHADER_DEBUG=err, so DXIL conversion failures name the construct the shader compiler rejected.Host-profile record
host_profiles.txtchanges for thesaveexecandemptyprograms on every profile. Their jump-flag guards are now joined with|(commit "or jump flags together in compute programs"). Nothing else in the record changes.Verified on Lanes
A pull request is not merged until Lanes passes on a GPU. Run:
python tuxbox.py checkpassed on this branch. Not yet. The first run shared its prefix with a running ProjectScarlett session, and every guest launch timed out after 15 s before it started. It will be rerun with the game closed, and the summary added here.check_translator_gpu.py.GPU, driver and backend: NVIDIA RTX 3000 Ada Generation Laptop GPU (10de:2838, host profile wave 32-32), driver 620.73.04, Proton backend with GE-Proton11-14 (vkd3d-proton v3.1-83-gcae8353ed), Linux 7.3.5.
Paste the summary printed at the end:
ProjectScarlett 1.0.2.1 with this build at its start menu, from the game log:
Checks
CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of
tuxbox-d3d12.These ran locally on the rebased tip, as in CI:
python -m unittest discover -s tests -qcargo test … tools/shader-compilercargo test -p tuxbox-dxbc --features native-bindingscargo test -p tuxbox-xg-layoutcargo check --target x86_64-pc-windows-msvc -p tuxbox-d3d12--tests, here and at every runtime commit before the rebaseNo evidence JSON changes.
🤖 Generated with Claude Code
A buffer descriptor loaded from the resource heap and then read with IDXEN needs its element stride, which the console keeps in bits 16..29 of V# word 1. Translated programs never see the console V#, so these were refused ("raw buffer IDXEN needs the console descriptor stride"). When the root carries the runtime's stride table (root SRV t1, space32766, one u32 per guest heap slot), a heap descriptor load fills word 1 from it, and IDXEN on that descriptor decodes the stride from there. Without the table nothing changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>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.