Elektrine lite

← Feed

@lisyarus@mastodon.gamedev.place

Post #2797271

2026-04-16 07:52 UTC

@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.

Replies (1)

  • @oblomov@sociale.network I wanted to show a case where comparing to zero is the correct thing to do. 3. That's news to me. Do you have any references to support this claim? Sure, of your matrix is sparse/symmetric/tridiagonal/whatever, you can do much better, but for a general system my impression was that there are basically just GJ and QR. QR is more precise but slower. Again, note that absolutely maximum precision wasn't the goal.

    Open ##2797272