3 ms·
Logarithm too. I had written a fractal program in python, and one optimization for adding up a lot of logarithms was to multiply several values together first,
by sp332 9y ago
Logarithm too. I had written a fractal program in python, and one optimization for adding up a lot of logarithms was to multiply several values together first, then take the log of the batch. When I converted it to a shadertoy, I found that I could strip out the crufty batching code, converting hundreds of multiplies into logarithms with no noticeable change in performance.