-
Notifications
You must be signed in to change notification settings - Fork 4.7k
more than 500 multi-agents simulation at one time #4942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
AirSim adopts a spin wait similar to sleep (0) in some low-level sleep implementations, which causes threads to be repeatedly scheduled on the CPU core when multiple drones are simulated simultaneously, resulting in high kernel state consumption. When the number of simulated drones approaches the number of CPU cores/CPU threads, performance will plummet, so it can be seen that in your configuration, 80 drones correspond to your CPU96 core. The solution is to replace its internal spin implementation (approximately four times) with a plain sleep implementation and recompile AirLib for use in the Unreal project. Using this method, I can achieve 400+drone simulation based on i7-12700 in Unity scenarios. |
hi dude, could u tell me the detail how u replace the internal spin implementation with a plain sleep one? thank u sooooo much!! |
Hi,
Please note that my fork introduces Boost as a dependency, and the build has only been tested on Windows. |
膜拜大佬!!!真的牛!非常感谢,这就去研究下 |
Uh oh!
There was an error while loading. Please reload this page.
How can I simulate more than 500 multi-rotors at one time.
Here is my computer hardware list:
cpu:AMD EPYC 9654 96-Core Processor
ram:128g
gpu:4090
I find the simulation will not display smoothly in UE everytime the number over 70~80
I have tried join(),multi-process,threading.They don't work
The text was updated successfully, but these errors were encountered: