upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorSnooozs <0randale196@gmail.com>2026-11-25 23:28:38 +0100
committerSnooozs <0randale196@gmail.com>2026-11-25 23:28:38 +0100
commitf6cb4aedfc01d8e8421122643ea668ae71a6abf5 (patch)
tree642a065b7a806a1f241816b97770da8031c6a16e /runtime/src/main.cpp
parentd601736ced20708d5d2b0f60374d549701473405 (diff)
runtime: LEONIDA_DEV_OVERLAY shows what the runtime is doing over the title's window (RT-DEV-OVERLAY)
A click-through window of its own with its own thread: frame and submission rate, a submission's CPU time by phase, the phase running now, pipeline builds in flight, indirect draws, cores and memory. Off by default. submit_phases keeps per-phase counts of the threads inside a phase, so overlapping submissions of several queues leave none behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp
index 094aaa321..1adacab85 100644
--- a/runtime/src/main.cpp
+++ b/runtime/src/main.cpp
@@ -149,6 +149,7 @@ void start_title_peek(std::uint8_t* base) {
149#include "mods.h" 149#include "mods.h"
150#include "pe_loader.h" 150#include "pe_loader.h"
151#include "thread_stacks.h" 151#include "thread_stacks.h"
152#include "dev_overlay.h"
152#include "thread_sampler.h" 153#include "thread_sampler.h"
153#include "title_page_watch.h" 154#include "title_page_watch.h"
154#include "title_geometry_watch.h" 155#include "title_geometry_watch.h"
@@ -561,6 +562,7 @@ int wmain(int argc, wchar_t** argv) {
561 std::fflush(stdout); 562 std::fflush(stdout);
562 keep_title_watchdog_kicked(main_module.base); 563 keep_title_watchdog_kicked(main_module.base);
563 start_title_peek(main_module.base); 564 start_title_peek(main_module.base);
565 leonida::dev_overlay::start(); // LEONIDA_DEV_OVERLAY=1
564 leonida::thread_sampler::start(main_module.base, main_module.size); // LEONIDA_SAMPLE_MS (diagnostic) 566 leonida::thread_sampler::start(main_module.base, main_module.size); // LEONIDA_SAMPLE_MS (diagnostic)
565#ifdef LEONIDA_VULKAN_DEVICE 567#ifdef LEONIDA_VULKAN_DEVICE
566 SetConsoleCtrlHandler(&stop_compiles_on_console_exit, TRUE); 568 SetConsoleCtrlHandler(&stop_compiles_on_console_exit, TRUE);