upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/queue_holds.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/queue_holds.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/queue_holds.h')
-rw-r--r--runtime/src/queue_holds.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/src/queue_holds.h b/runtime/src/queue_holds.h
index 2839d4210..40cc33117 100644
--- a/runtime/src/queue_holds.h
+++ b/runtime/src/queue_holds.h
@@ -93,6 +93,13 @@ public:
93 return it == fences_.end() || it->second < value; 93 return it == fences_.end() || it->second < value;
94 } 94 }
95 95
96 // The highest Signal submitted for the fence (or set by the CPU); 0 for an unknown semaphore.
97 std::uint64_t submitted_value(Semaphore semaphore) const {
98 std::lock_guard lock(mutex_);
99 const auto it = fences_.find(semaphore);
100 return it == fences_.end() ? 0 : it->second;
101 }
102
96 // true when no submitted Signal reaches `value` yet. Unknown semaphores are satisfied. 103 // true when no submitted Signal reaches `value` yet. Unknown semaphores are satisfied.
97 bool pending(Semaphore semaphore, std::uint64_t value) const { 104 bool pending(Semaphore semaphore, std::uint64_t value) const {
98 std::lock_guard lock(mutex_); 105 std::lock_guard lock(mutex_);