launcher: add preparation phase timing and tools/boot_timeline.py #485
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/485"
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 brcly/TuxBox. Originally posted by glovepost on 2026-11-29T15:42:08Z.
Narrowed per review to Part 1 (launch-preparation phase timing and
tools/boot_timeline.py). The remaining five launcher pieces (--prepare-onlymanifest,--warm-launch, quieter refusal reporting, wait-report/stall diagnostics, and live-session D3D12 tracing) are backed up onglovepost/TuxBox:backup/pr485-full(a85109a1) to open separately after earlier PRs land.Summary
project_tuxbox/scarlett_prep.py: record elapsed seconds per phase (scan,shaders,optimise,pipelines) and logLaunch preparation phases: ...at the end of preparation.project_tuxbox/shader_prep.py: record elapsed seconds per phase (shaders,linked shaders,chase shaders,compute PSOs) and logLaunch preparation phases: ....tools/boot_timeline.py: parse one ProjectScarlett log into boot milestones (first_frame,profile_selected,first_3d_draw,world_import_16,device_lost), 30 s HUD/PSO progress windows, and optionalTUXBOX_WAIT_REPORT=1wait summaries.tests/test_boot_timeline.py,tests/test_scarlett_prep.py: cover timeline parsing/rendering andLaunch preparation phases:output.Verification
python3 tuxbox.py check --no-gpupassed 9/9 checks on commit HEAD:tests.test_boot_timelineandtests.test_scarlett_prep)tuxbox.py check) and ProjectScarlett were not run against this narrowed commit (a85109a1previously ran offlineboot_timelineparsing against<log_path>; onlytuxbox.py check --no-gpuran after the rebase/split).AI-assisted: split, rebased, and tested with LLM tooling.
Imported from brcly/TuxBox. Originally posted by glovepost on 2026-11-29T21:56:08Z.
@brcly Quick heads-up: I rebased #485 onto
mainand fixed thelog_window_commandshutil.whichlookup (a85109a1) a couple minutes afterwaiting-on-authorwas added. All3/3CI checks are green and the PR isMERGEABLE.ProjectScarlett was not run with this branch (host checks only). Let me know whether you'd prefer #485 reviewed as-is or split into smaller PRs along the lines of the updated
CONTRIBUTING.md.Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T22:03:02Z.
Thanks for rebasing. I'd prefer it split, along the lines of the updated
CONTRIBUTING.md. It changes launches for everyone in six unrelated ways, and some of them need their own look:tools/boot_timeline.py. Useful now, since compile time is our focus; this one first, please.host.py.--log-window.PROTONFIXES_DISABLE,PROTON_FSR4_UPGRADE) and theRLIMIT_NICEpromotion. These change how every launch runs, so they need a sentence each on why, and what they do on a machine that doesn't need them.Small PRs like these are quick to review and merge on their own.
Imported from brcly/TuxBox. Originally posted by glovepost on 2026-11-29T22:51:58Z.
Narrowed #485 onto
origin/main(f360038d) to Part 1 only: preparation phase timing (project_tuxbox/scarlett_prep.py,project_tuxbox/shader_prep.py) andtools/boot_timeline.py+ tests.The full original branch (
a85109a1) is backed up onglovepost/TuxBox:backup/pr485-full; parts 2–6 are held off PR until earlier open PRs land.Verified after the split with
python3 tuxbox.py check --no-gpu(9/9 checks passed, 740 Python tests; GPU tests and ProjectScarlett did not run on this split commit).Imported from brcly/TuxBox. Originally posted by glovepost on 2026-11-30T01:47:57Z.
Rebased onto
main(f482572a, commit3a9f8720093e) with no functional changes from74e18049, and ran the full check on NVIDIA (headlessxvfb-runwithWAYLAND_DISPLAY=""):WAYLAND_DISPLAY="" TUXBOX_CHECK_JOBS=2 DXC=<dxc> xvfb-run -a -s "-screen 0 2560x1440x24" python3 tuxbox.py check --changed --adapter 10de:1e84 --proton <proton> --prefix <prefix> --windows-dxc <windows-dxc>(ran the full suite becausescarlett_prep.pyis outside--changed's subset table)10de:1e84), driver620.73.04,GE-Proton11-14Lanes and fixtures on the GPU+ allD3D12 regression controls+Shader translator on the GPUall passed (14 passed, 0 failed, 0 not run).Evidence: TuxBox check of 3a9f8720093e, no uncommitted changes, GPU 10de:1e84: 14 passed, 0 failed, 0 not runImported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T03:11:46Z.
The AMD check you were missing, on
3a9f8720: AMD iGPU (1002:13c0, RADV, Mesa 26.0.8, GE-Proton11-14, Linux), fullpython tuxbox.py check: 199 pass, 0 fail. A game was loading on the other card for part of it. ProjectScarlett was not run on this commit.Evidence: TuxBox check of
3a9f872009, no uncommitted changes, GPU 1002:13c0: 14 passed, 0 failed, 0 not runImported from brcly/TuxBox. Originally posted by brcly on 2026-11-30T11:45:22Z.
Thanks for splitting it, and for the runs on both vendors. The phase timing in
scarlett_prep.pyandshader_prep.pyis good, and I'd merge that part as it is.tools/boot_timeline.pydoesn't work on main's logs yet, though. I ran it on one of our boots that reached the world (1,246 presents), and it found onlyfirst_frame. Of the lines it looks for:HUD shaders ready=,root view wide import #16,recorded Xbox DispatchMeshandprofile PSO endaren't printed anywhere on main. I assume they come from the parts you held back.save: enumerate containersis printed only when the save-service log is on.So with main as it is, the windows table stays empty and three of the five milestones never appear. Could you either:
TUXBOX_LOGalready writes; orand in either case show its output from a real main boot in the PR? Then this one is ready.
Imported from brcly/TuxBox. Originally posted by brcly on 2026-12-02T21:31:04Z.
Thanks for narrowing this down, the phase timing and
boot_timeline.pyare useful. It now conflicts with main inproject_tuxbox/scarlett_prep.py. Could you rebase onto main and check theLaunch preparation phases:line still lands where the test expects? We'll merge once it's clean and CI is green.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.