r/howdidtheycodeit • u/Object_71 • 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
View all comments
Show parent comment
12
u/noobgiraffe Sep 09 '26
Why are you upvoated when you are so wrong.
Not many but all and they didn't implement it, it is how psx hardware worked. It was many, many years before shaders so entire 3d transformation code was baked into hardware. It had specific fixed point precision defined by this hardware.
This precision was low and caused vertices to "snap" into specific spots instead of smoothly moving. That's the clunkiness OP is asking about, and it's partialy caused by fixed point math in itself and partially by the fact that fixed point math in psx gpu having few bits of precision.
This effect is replicated today by many demake, and psx lookalike games by rounding vertex positions in the shader so specific precision.