veloren/server
Marcel Märtens bbe6e8be7c Improve Phyiscs speed of entity handling.
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
2020-11-04 11:53:09 +01:00
..
src Improve Phyiscs speed of entity handling. 2020-11-04 11:53:09 +01:00
Cargo.toml Fixing Tarpaulin isn't easy. 2020-10-26 17:04:20 +01:00