r/howdidtheycodeit • • Sep 09 '26

Fixed point math in C

https://thatonegamedev.com/cpp/fixed-point-math-in-c/

Why did PS1 graphics looked so clunky and how where 3D graphics generally made prior to the graphical APIs. One thing I found out was that these older engines have something called fixed point math.

24 Upvotes

16 comments sorted by

View all comments

Show parent comment

2

u/richardathome Sep 09 '26

It's pretty much how accounting software stores it currencies values. You have an int field for doing calculations and divide by 100 when you need to display it.