[Tizen] Fixed physics initialization in benchmark 40/302640/1 accepted/tizen/8.0/unified/20231214.075337
authorDavid Steele <david.steele@samsung.com>
Wed, 6 Dec 2023 18:41:15 +0000 (18:41 +0000)
committerEunki Hong <eunkiki.hong@samsung.com>
Mon, 11 Dec 2023 10:06:07 +0000 (19:06 +0900)
commitd166edeac0a1d83aa1da6a2f22788a81ba6628ea
tree9bfcb0264e04bae47fe694fbfa1ea3dac2de7822
parent2f084ab993c16c65c8ef602ff0bfb1094be94ee8
[Tizen] Fixed physics initialization in benchmark

Physics bodies created in the same location creates too many
collision arbiters when added to the space, and initialization
takes too long

Solution: ensure that they are positioned separately before
adding to the space.

Note, if there are so many particles that they overlap, then collision
is noticeably slow.

Change-Id: I88f8ce970bcceb90b213d0f9999400a4e2134944
Signed-off-by: David Steele <david.steele@samsung.com>
examples/benchmark-2dphysics/benchmark-2d-physics-controller.cpp