upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.h
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 19:04:24 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 19:04:24 -0500
commit8d832fd10913064e1c8aec74191e3ba8f70211c8 (patch)
treee365199d7d86ebf592a5a0dc2f07cda4b74b58a7 /runtime/src/thread_stacks.h
parent5da3b6be3cefc1499452ba8c8370a50092674d61 (diff)
parentc50ed94b35b37b697ab9c5fd176f3738480b4db5 (diff)
Merge main into rt-title-every-budget (#2122)
#2098 split the every-pass loop of refresh_title_textures by mode: with LEONIDA_TEXTURE_REFRESH_ASYNC every persistent mapping is polled each pass and only stale unmapped textures are visited, without it all mapped or stale ones are. The async branch is kept as main has it. LEONIDA_TITLE_EVERY_BUDGET_US applies to the synchronous pass, the one before a submission on the submitting thread; under async the pass runs on the refresh worker and the limit does not apply (README says so). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.h')
-rw-r--r--runtime/src/thread_stacks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/src/thread_stacks.h b/runtime/src/thread_stacks.h
index 523c7b266..1edc1b350 100644
--- a/runtime/src/thread_stacks.h
+++ b/runtime/src/thread_stacks.h
@@ -35,4 +35,8 @@ bool parse_stack_times(std::string_view text, std::vector<unsigned>& seconds);
35// sampler before unmapping the title image. 35// sampler before unmapping the title image.
36std::jthread start_thread_stacks(); 36std::jthread start_thread_stacks();
37 37
38// The call chain of thread `tid` now, or of every other thread when `tid` is 0, printed as LEONIDA_STACKS does under
39// the tag `why`. One call at a time; the device-loss diagnostics call it (vulkan_device_fault.h thread_stack_hook).
40void print_thread_stacks_now(std::uint32_t tid, const char* why) noexcept;
41
38} // namespace rt 42} // namespace rt