Re:Fixed Point Arithmetic
by shultays on Sunday October 17, 2021 @10:26PM
(#28901672)
They are still popular for multiplayer games that has a synced game state. In all clients you want to get exact same results when they run same code which is not possible with fp
[ Parent
| on HN ]
Re:Fixed Point Arithmetic
by dragonwriter on Sunday October 17, 2021 @10:28PM
(#28901687)
“fp” is an unfortunate abbreviation for floating point when contrasted with fixed point.
Hah, thanks for pointing that out, I haven't noticed it
Is it really not possible to guarantee the same floating point behavior across different CPUs? I was under the impression that compilers had flags for that kind of thing.
I am not the expert but looks like there are some answers (atq2119 and newpavlov) under this thread: https://news.ycombinator.com/item?id=28901751
tldr: it is hard. I was wrong by saying it is "not possible". But I wonder if it is possible if your target platform includes various consoles?