Run two render worker threads on emscripten.

This commit is contained in:
Bartosz Taudul 2024-09-19 20:44:42 +02:00
parent 25899fef73
commit 07995f0222
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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