Performance Optimization of Crowd.update() #467
Unanswered
niko-dellic
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @isaac-mason , let me know if you have any thoughts or references on the matter. Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I'm looking for some suggestions on how to increase the performance of the crowd update function. I can run 2500 agents with ease, but drop to 1FPS over 10,000. Running the profiler, the major bottleneck is the crowd update function:
Before I commit to creating a multi-threaded worker system, does anyone have any suggestions on how to reduce the cost of the crowd.update() function? I'm using a fixed time step of 1/60:
and the other functions in the update loop are quite negligible even at 20,000 agents:

any help in the matteer would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions