(core): SFrameMatrixSynchronizer is slow as hell in debug
Summary
SFrameMatrixSynchronizer is damned slow, at least in Debug.
Steps to reproduce
Add a FW_PROFILE_AVG macro in SFrameMatrixSynchronizer::synchronize()
, after the return:
void SFrameMatrixSynchronizer::synchronize()
{
m_updateMask |= SYNC_REQUESTED;
if(!(m_updateMask & OBJECT_RECEIVED))
{
return;
}
FW_PROFILE_AVG("synchro", 2);
- Now build and run ExVideoTracking with
--log-info
option. - Open a Full-HD video and play it.
- Observe that the spent time is abnormal, around 40ms. In Release this is better but still very high, around 10ms.
Dev environment
- OS: Linux
- Compiler: gcc/clang
- Build type: debug