upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/submit_frame_test.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-29 16:50:39 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-29 16:50:39 -0500
commit22e1349d788cbd1af1cbecfa84180f40c428617d (patch)
treecaa4b08e00ce5cd97299fd86fbc5ac49aed29b91 /runtime/test/submit_frame_test.cpp
parenteade9562c1919e39efe3ea2ce719e4b96d59c837 (diff)
test(submit_frame): yield until steady_clock advances in WorkerScope check
Diffstat (limited to 'runtime/test/submit_frame_test.cpp')
-rw-r--r--runtime/test/submit_frame_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/test/submit_frame_test.cpp b/runtime/test/submit_frame_test.cpp
index b79b7f3f7..0d456617d 100644
--- a/runtime/test/submit_frame_test.cpp
+++ b/runtime/test/submit_frame_test.cpp
@@ -50,6 +50,7 @@ int scripted() {
50 std::thread([] { 50 std::thread([] {
51 const sp::WorkerScope busy(sp::worker_texture_reads); 51 const sp::WorkerScope busy(sp::worker_texture_reads);
52 sp::add(sp::textures, 5 * ms); 52 sp::add(sp::textures, 5 * ms);
53 while (sp::now_ns() == busy.start) std::this_thread::yield();
53 }).join(); 54 }).join();
54 // A title call that spends about 3 ms, 1 ms of it in a phase: about 2 ms of fences. 55 // A title call that spends about 3 ms, 1 ms of it in a phase: about 2 ms of fences.
55 const auto call_start = std::chrono::steady_clock::now(); 56 const auto call_start = std::chrono::steady_clock::now();