mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Run two render worker threads on emscripten.
This commit is contained in:
parent
25899fef73
commit
07995f0222
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user