[Tizen] Optimized benchmark animation (Reduce event thread overhead) 37/302637/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 5 Dec 2023 06:45:30 +0000 (15:45 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Mon, 11 Dec 2023 10:05:06 +0000 (19:05 +0900)
commitd48bdfe1e81c611099056b05096f5449d7f017de
tree7878c83006bbc088f0b9eab3c912b1eb121234b8
parentc5076449f98fc23e3417b7638984f2c867c871f9
[Tizen] Optimized benchmark animation (Reduce event thread overhead)

Since we were create new animations every PropertyNotify, and at that time,
we iterate whole balls.

If event thread time delayed (~= the ball is very much) event callback
stacked a lot, and then break the app.

To avoid it, we make the number of animations relative with ball +
change the animation only if we need, not always.

It will reduce the event thread overhead.

Change-Id: Ic6da267e827d012c9e68c7d64594596f3617233a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
examples/benchmark-2dphysics/benchmark-2d-physics-controller.cpp