Update CCMotionStreak.cpp

This commit is contained in:
DelinWorks 2022-05-03 20:54:44 +03:00
parent 646f04f1c9
commit edf0f5632e
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ bool MotionStreak::initWithFade(float fade, float minSeg, float stroke, const Co
_stroke = stroke;
_fadeDelta = 1.0f / fade;
// Fix animation interval 0 because of vsync being off
// Fix #629 Motion streak vsync off crash
double interval = _director->getAnimationInterval();
double fps = 1 / interval;
if (roundf(fps) == INFINITY)