修复了定时器同步问题

This commit is contained in:
Nomango 2017-10-10 08:54:25 +08:00
parent 9b4100d414
commit a079f9f8f2
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ void Timer::__exec()
continue;
}
// 判断时间间隔是否足够
if (duration_cast<milliseconds>(GetNow() - timer->m_nLast).count() > timer->m_nAnimationInterval)
while (duration_cast<milliseconds>(GetNow() - timer->m_nLast).count() > timer->m_nAnimationInterval)
{
// 重新记录时间
timer->m_nLast += milliseconds(timer->m_nAnimationInterval);