forked from mirrors/0ad
ccd1046d67
Use futures to spawn several threads that concurrently work through the active range queries each turn instead of doing everything serially on the main thread -- similar to how the pathfinder computes pathfinding requests asynchronously. This significantly increases performance. Note: It still can't run in parallel to the rest of the simulation update since the range computations depend on the state of the simulation (like the position of units).