Ticket #1193 (new defect)
Replace SpiderMonkey's Math functions with platform consistent versions
|Reported by:||historic_bruno||Owned by:||quantumstate|
Description (last modified by historic_bruno) (diff)
As Philip reported on Bugzilla, there are differences in SpiderMonkey's floating point 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.
(There may also be differences in pow and exp which we do use rarely, but I wasn't able to reproduce them with the above test cases.)
- Description modified (diff)
- Summary changed from Replace SpiderMonkey's trig functions with safe fixed-point versions to Replace SpiderMonkey's trig functions with platform consistent versions