[NUI] Layout Transition Performance Improvement (#3562)
authorhuiyu <35286162+huiyueun@users.noreply.github.com>
Wed, 15 Sep 2021 00:18:52 +0000 (09:18 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 27 Sep 2021 08:27:23 +0000 (17:27 +0900)
- Move Animating to Process()
  Reduce animation calling count.

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/internal/Layouting/LayoutController.cs

index ae1f13c..b6574c7 100755 (executable)
@@ -115,6 +115,11 @@ namespace Tizen.NUI
                     }
                 });
             });
+
+            if (SetupCoreAnimation() && OverrideCoreAnimation == false)
+            {
+                PlayAnimation();
+            }
         }
         /// <summary>
         /// Get the Layouting animation object that transitions layouts and content.
@@ -246,11 +251,6 @@ namespace Tizen.NUI
                                      new LayoutLength(positionX) + root.Layout.MeasuredWidth.Size,
                                      new LayoutLength(positionY) + root.Layout.MeasuredHeight.Size);
             }
-
-            if (SetupCoreAnimation() && OverrideCoreAnimation == false)
-            {
-                PlayAnimation();
-            }
         }
 
         private float GetLengthSize(float size, int specification)