From 30b9d4cb5f00734d852d54f019c9011b8b15a102 Mon Sep 17 00:00:00 2001 From: Turky Mohammed <45469625+DelinWorks@users.noreply.github.com> Date: Wed, 4 May 2022 10:00:38 +0300 Subject: [PATCH] =?UTF-8?q?Update=20core/2d/CCMotionStreak.cpp=20[skip=20c?= =?UTF-8?q?i]=20Co-authored-by:=20=E6=B6=93=E2=82=AC=E7=BB=BE=E8=B7=A8?= =?UTF-8?q?=E4=BC=92=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/2d/CCMotionStreak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/2d/CCMotionStreak.cpp b/core/2d/CCMotionStreak.cpp index 037182b83d..831607725e 100644 --- a/core/2d/CCMotionStreak.cpp +++ b/core/2d/CCMotionStreak.cpp @@ -104,7 +104,7 @@ bool MotionStreak::initWithFade(float fade, float minSeg, float stroke, const Co // Fix #629 Motion streak vsync off crash double interval = _director->getAnimationInterval(); double fps = 1 / interval; - if (roundf(fps) == INFINITY) + if (roundf(fps) > 240.0) fps = 240.0; _maxPoints = (int)(fade * fps) + 2;