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
This commit is contained in:
Hermet Park 2024-05-09 14:26:32 +09:00
parent 63705d9f04
commit 362faa3c9a

View file

@ -23,7 +23,7 @@
#include "tvgMath.h"
#include "tvgLines.h"
#define BEZIER_EPSILON 1e-4f
#define BEZIER_EPSILON 1e-2f
/************************************************************************/
/* Internal Class Implementation */