MadMartian / hydrazine-path-finding

A rather basic A* path-finding engine inspired by a certain blocky sandbox game that everyone has played before
Other
22 stars 3 forks source link

FastMath helpers aren't actually fast #2

Closed MadMartian closed 3 years ago

MadMartian commented 3 years ago

These methods (ceil and floor in particular) are not necessary because their counterparts in java.lang.Math are intrinsics and ironically faster. The code should be refactored to use the intrinsics instead.

MadMartian commented 3 years ago

It's in 1.5.4, not tagged and not finished yet, still have work to do! I mean there's more unrelated stuff to go into 1.5.4 before I tag it, but this is done.