upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkawaii-shakal <deusex1998@gmail.com>2026-11-25 20:51:50 +0500
committerkawaii-shakal <deusex1998@gmail.com>2026-11-25 20:51:50 +0500
commite86b3ceaa8d9359df5baaee7e5246d219fb88dbb (patch)
tree766912e2d62b5fa5a24b677421ec60484d8f0f52 /docs
parent71a769d7d85208f86c6e2e50263aca7df1becce9 (diff)
d3d12_xs: LEONIDA_TITLE_HUD shows frame rate, memory and pipeline compiles in the window's title bar (RT-TITLE-HUD)
A tester has no way to see, during a boot, whether the game is slow because of frame time, memory pressure or pipelines compiled in the frame. With LEONIDA_TITLE_HUD=1 the window the title presents in gets, twice a second: - fps and the average and worst frame time from PresentX; - private memory and working set; - local GPU memory against the DXGI budget, and shared GPU memory; - pipelines created and the seconds spent in vkCreate*Pipelines in the last interval (with LEONIDA_MEM_PROBE); - time since the first present. A thread of its own sets the text with SendMessageTimeout, so a busy or hung window thread never holds a present. title_hud_test drives a real window from another thread and checks the text and the shutdown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/boot.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/boot.md b/docs/boot.md
index 2b7186e30..e9c64a6b3 100644
--- a/docs/boot.md
+++ b/docs/boot.md
@@ -116,6 +116,17 @@ Useful switches:
116 diagnostic). 116 diagnostic).
117* `LEONIDA_DEVICE_FAULT=1` enables Vulkan device-loss diagnostics and checkpoints where available. The first 117* `LEONIDA_DEVICE_FAULT=1` enables Vulkan device-loss diagnostics and checkpoints where available. The first
118 observed loss prints a `[rt] device-fault:` report to stderr. 118 observed loss prints a `[rt] device-fault:` report to stderr.
119* `LEONIDA_TITLE_HUD=1` shows live counters in the title bar of the window the title presents in
120 (`runtime/shims/title_hud.h`). It updates twice a second with:
121 - the frame rate and the average and worst frame time from PresentX;
122 - the process's private memory and working set;
123 - its local GPU memory against the DXGI budget, and its shared GPU memory;
124 - the graphics and compute pipelines created, and the seconds spent in `vkCreate*Pipelines` in the last half
125 second. A pipeline compiled in the frame shows up there as a hitch. This needs `LEONIDA_MEM_PROBE`; without it
126 the field reads `PSO -`.
127 - the time since the first present.
128
129 A thread of its own sets the text with `SendMessageTimeout`, so a busy window thread never holds a present.
119* `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their 130* `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their
120 implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known 131 implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known
121 problems"). 132 problems").