修复了定时器同步问题
This commit is contained in:
parent
9b4100d414
commit
a079f9f8f2
|
|
@ -88,7 +88,7 @@ void Timer::__exec()
|
||||||
continue;
|
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);
|
timer->m_nLast += milliseconds(timer->m_nAnimationInterval);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue