News for hackers. Stuff that matters.
Re:Unreasonably effective – How video games use LUTs and how... by michaelnik on Thursday February 29, 2024 @09:24AM (#39549641)
Can confirm CPU part. I once tried to replace a 2d stepwise linear function interpolations (basically, a loop finding the right step, then linear interpolation, on a double; the function's objective is to rescale inputs before they become regression's arguments) by LUTs.

All of this looping was happening in another tight loop, and there were multiple LUTs.

It was a failure with overall decreased performance and increased cache misses. Plus, I could never get the same precision.

There are no comments on this comment yet.