Post #2797270
2026-04-14 18:57 UTC
@lisyarus@mastodon.gamedev.place
4. the user input case really brings out the fact that main pain point with epsilons isn't even the epsilons themselves, but the fact that they are chosen *arbitrarily*; however, this is a very different matter compared to “don't use them when they aren't needed”. (yes this connects to point 1. above)
THE END.
Replies (1)
-
@lisyarus@mastodon.gamedev.place 2026-04-16 07:52
@oblomov@sociale.network 1. I don't see how this contradicts what I'm saying, except layer I show a case (slerp) where even FLT_EPSILON is not the correct thing, for a couple of reasons. 2. Absolutely agreed. Though note that the goal was not to have maximum precision, but to have reasonable results & nice invariants. 2bis. I've seen a lot of people who would immediately replace this code with epsilon, simply because of the "FP COMPARE BAD" mantra.