News for hackers. Stuff that matters.
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
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.
Re:Fixed Point Arithmetic by shultays on Monday October 18, 2021 @04:25AM (#28903312)
Hah, thanks for pointing that out, I haven't noticed it
Re:Fixed Point Arithmetic by Asraelite on Monday October 18, 2021 @06:42AM (#28904066)
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.
Re:Fixed Point Arithmetic by shultays on Monday October 18, 2021 @09:00AM (#28904963)
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?