From 333647ff6632ba437f6aa8a002cb0029f6238f67 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Wed, 10 May 2023 09:07:31 +0900 Subject: [PATCH] Reduce Bezier Curve AlphaFunction's tolerance Previously, we use the tolerance of T value as 0.001f. That mean, In 4K system, the error range of result can be ~2 pixels. Let we squeeze the tolerance so reduce the numeric error. Change-Id: I7d08de0bce8f2bac3441cb8a0bd4e5b55a31b989 Signed-off-by: Eunki, Hong --- dali/internal/update/animation/scene-graph-animator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali/internal/update/animation/scene-graph-animator.h b/dali/internal/update/animation/scene-graph-animator.h index 391bacf..46d0a88 100644 --- a/dali/internal/update/animation/scene-graph-animator.h +++ b/dali/internal/update/animation/scene-graph-animator.h @@ -357,7 +357,7 @@ public: { Dali::Vector4 controlPoints = mAlphaFunction.GetBezierControlPoints(); - static const float tolerance = 0.001f; //10 iteration max + static const float tolerance = 0.00005f; // 15 iteration max //Perform a binary search on the curve float lowerBound(0.0f); -- 2.7.4