mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
bbe6e8be7c
Before we had accessed velocities in a nested loop O(n²). Now we copy it only once out of the ECS system and store it in a tmp Vec. As we no longer need to hold a mut and imutable reference, we can iter of `&mut velocities` again in the outer loop. Also improved many calculations called in the loop to make the check if 2 entities are to far apart as easy as possible |
||
---|---|---|
.. | ||
benches | ||
src | ||
build.rs | ||
Cargo.toml |