diff --git a/Easy2D/Tool/Timer.cpp b/Easy2D/Tool/Timer.cpp index 547f0b93..1c4a9692 100644 --- a/Easy2D/Tool/Timer.cpp +++ b/Easy2D/Tool/Timer.cpp @@ -88,7 +88,7 @@ void Timer::__exec() continue; } // 判断时间间隔是否足够 - if (duration_cast(GetNow() - timer->m_nLast).count() > timer->m_nAnimationInterval) + while (duration_cast(GetNow() - timer->m_nLast).count() > timer->m_nAnimationInterval) { // 重新记录时间 timer->m_nLast += milliseconds(timer->m_nAnimationInterval);