From 07995f02224acfee7a785967f074266faff1a367 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 19 Sep 2024 20:44:42 +0200 Subject: [PATCH] Run two render worker threads on emscripten. --- profiler/src/profiler/TracyTimelineController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyTimelineController.cpp b/profiler/src/profiler/TracyTimelineController.cpp index bffb5c36..8796f908 100644 --- a/profiler/src/profiler/TracyTimelineController.cpp +++ b/profiler/src/profiler/TracyTimelineController.cpp @@ -18,7 +18,7 @@ TimelineController::TimelineController( View& view, Worker& worker, bool threadi , m_view( view ) , m_worker( worker ) #ifdef __EMSCRIPTEN__ - , m_td( 0, "Render" ) + , m_td( threading ? 2 : 0, "Render" ) #else , m_td( threading ? (size_t)std::max( 0, ( (int)std::thread::hardware_concurrency() - 2 ) / 2 ) : 0, "Render" ) #endif