<div dir="ltr">Hi, the source code in lookahead cuTree function has to calculate the averageDuration by a while loop each time, why not use double averageDuration = (double)m_param->fpsDenom / m_param->fpsNum; in the initial function of lookahead? Thanks!</div>