From 362faa3c9af351c59c794bdd74efbe6a324b2314 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 9 May 2024 14:26:32 +0900 Subject: [PATCH] common: tweaking bezier computation for perf. It will sacrifice precision that is not noticeable and instead try to improve performance. Approximately 5% has beeen improved at Lottie example --- src/common/tvgLines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/tvgLines.cpp b/src/common/tvgLines.cpp index cf711937..217b4917 100644 --- a/src/common/tvgLines.cpp +++ b/src/common/tvgLines.cpp @@ -23,7 +23,7 @@ #include "tvgMath.h" #include "tvgLines.h" -#define BEZIER_EPSILON 1e-4f +#define BEZIER_EPSILON 1e-2f /************************************************************************/ /* Internal Class Implementation */