runtime: LEONIDA_DEV_OVERLAY shows what the runtime is doing over the title's window (RT-DEV-OVERLAY) #2137
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2137
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2137/head"
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?
@Snooozs on GitHub · 2026-11-25 22:31 UTC · original
Snooozs:dev-overlay→main· +491 −2 · 9 files · 1 commits · merged 2026-11-25 23:02 UTCClaimed in the coordination issue as: RT-DEV-OVERLAY (#1608)
What and why
LEONIDA_DEV_OVERLAY=1(off by default, Windows) draws what the runtime is doing in a small click-through window over the top left corner of the title's window, while that window is in front:LEONIDA_TITLE_HUD(#1922) stays as it is: frame times, memory and compile time in the title bar. The overlay is for the boots that look frozen. It has its own thread, window and GDI text, so it keeps counting while the title presents nothing for seconds (a pipeline build, a submission that waits), and its "now" line says which of them it is. It is in no captured frame and changes nothing the GPU does. If you would rather have these lines intitle_hud.h, I move them.src/dev_overlay.h: the window and the text (the text is a pure function).src/dev_status.h: pipeline builds in flight. Two atomic operations and a short name copy per build, next to the existingpipeline_profile::DriverCall.src/submit_phases.h: eachScopealso counts its thread into its phase, and back into the outer phase when it ends. Counted per phase because queues submit from several threads: one "current phase" value goes stale when two scopes overlap and end in the order they began. Always on, a few relaxed atomics per scope.Tested
dev_overlay_test(no window, GPU or game file, portable): the text, the counter differences, nested scopes, two threads whose scopes overlap, the builds in flight. Two mutants ofsubmit_phases.h(the outer phase not entered again; the phase not left) fail it.gta6rt,dev_overlay_testandtitle_hud_testbuild with Visual Studio 2022 (RelWithDebInfo); both tests pass. Full ctest was not run.main, with the per-phase counts and the other two header changes, has not been booted with the game yet.GPUs tested: n/a for the test; the local boots ran on an NVIDIA RTX 5060 Ti 16 GB, driver 621.01, Windows 10 19045.
AI-assisted: yes (Claude Code, Claude Opus 5.5).
Checklist
mainand merges cleanly (checked againstd3b67a704).🤖 Generated with Claude Code
@aslan2142 on GitHub · 2026-11-25 23:02 UTC · original
Merged, thanks! A good view for the boots that look frozen.
LEONIDA_DEV_OVERLAY=1). The always-on part is a few relaxed atomics per submission phase and per pipeline build, and nested scopes stay balanced. The overlay has its own thread and click-through window, and shows only over the title while it is in front.active_sinceis stored just after the count goes from 0 to 1, so the "now" line can show a stale time for one refresh.main5fab93967: no test went from pass to fail, anddev_overlaypasses on both. The CI and ctest registration tests pass.maina0723a9e9+f6cb4aedf: it merges cleanly; the semantic suite passes (493 files, 6,318 tests, 0 files failed); the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 9 changed files.AI-assisted (Claude Code, Claude Opus 5.5).