1 | | As Philip reported on [https://bugzilla.mozilla.org/show_bug.cgi?id=531915 Bugzilla], there are differences in !SpiderMonkey's floating point [https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math Math] functions on different platforms. Even a small discrepancy can cause OOS errors in multiplayer games, if those functions are used in e.g. simulation, map generation, or AI code. We already use fixed point approximations for `sin`/`cos` and `atan2` in the engine, but not yet for scripts. Currently no scripts appear to use `atan`, `acos`, or `asin`. |
| 1 | As Philip reported on [https://bugzilla.mozilla.org/show_bug.cgi?id=531915 Bugzilla], there are differences in !SpiderMonkey's floating point [https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math Math] functions on different platforms. Even a small discrepancy can cause OOS errors in multiplayer games, if those functions are used in e.g. simulation, map generation, or AI code. ~~We already use fixed point approximations for `sin`/`cos` and `atan2` in the engine, but not yet for scripts.~~ Currently no scripts appear to use `atan`, `acos`, or `asin`. |