Replies: 2 comments 3 replies
-
I would do a measurement with a modified version of
By this you can compare this execution time with the 1.8 ms you mentioned above. |
Beta Was this translation helpful? Give feedback.
-
1.6 ms for 5000 entities looked as a very high execution time. https://github.com/friflo/Friflo.Engine.ECS/blob/main/src/Tests/ECS/Github/Test_GitHub_44.cs The result: 10,000 iterations traversing 6111 entities: 1.2 sec => 0.12 ms for one iteration. Some remarks:
|
Beta Was this translation helpful? Give feedback.
-
I am using Unity. Trying to update hierarchy's transform. But my implement is too slow. Update 5000 entity need almost 1.8ms. a plain Update QuerySystem only need 0.6ms.
maybe the random access to Entity and TryGetComponent slow down it.
Can anyone provide suggestions?
my code like:
components:
systems of update hierarchy's transform:
system of plain update:
Beta Was this translation helpful? Give feedback.
All reactions