Repository navigation
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. |
2 replies
|
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:
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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:
All reactions