Open ZhangShaungnj opened 8 months ago
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.
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