diff options
| author | kawaii-shakal <deusex1998@gmail.com> | 2026-11-25 20:51:50 +0500 |
|---|---|---|
| committer | kawaii-shakal <deusex1998@gmail.com> | 2026-11-25 20:51:50 +0500 |
| commit | e86b3ceaa8d9359df5baaee7e5246d219fb88dbb (patch) | |
| tree | 766912e2d62b5fa5a24b677421ec60484d8f0f52 /runtime/src/thread_stacks.cpp | |
| parent | 71a769d7d85208f86c6e2e50263aca7df1becce9 (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 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions