DrInfy / sc2-pathlib

Pathfinding and terrain analysis library for Starcraft 2 bot api in Rust
MIT License
13 stars 9 forks source link

Change f64 to f32 #17

Closed danielvschoor closed 4 years ago

DrInfy commented 4 years ago

Old f64:

pathfinding took 211.899 ms. Total distance 23263.043200000004 pathfinding took 0.82773046875 ms per path. adding influence took 0.04 ms. adding influence by walking distance took 0.2994 ms.

New f32:

pathfinding took 210.9118 ms. Total distance 23263.043228149414 pathfinding took 0.82387421875 ms per path. adding influence took 0.033600000000000005 ms. adding influence by walking distance took 0.2834 ms.