1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Do postponed work only when needed.

This commit is contained in:
Bartosz Taudul
2021-02-07 18:29:29 +01:00
parent 9bb1d13afa
commit c220177828
3 changed files with 38 additions and 34 deletions
+1
View File
@@ -731,6 +731,7 @@ bool View::DrawImpl()
}
}
std::lock_guard<std::mutex> lock( m_worker.GetDataLock() );
m_worker.DoPostponedWork();
if( !m_worker.IsDataStatic() )
{
if( m_worker.IsConnected() )