3 ms·
Good tips, however it's still often beneficial to do reciprocal float division: i.e. float rcpDiv = 1.0f / value; float finalValue = myValue * rcpDiv; In
by berkut 12y ago
Good tips, however it's still often beneficial to do reciprocal float division: i.e.
float rcpDiv = 1.0f / value;
float finalValue = myValue * rcpDiv;
In a lot of cases when speed matters. With fpmath=fast, I've seen compilers do that for you, but not always, as it potentially changes the answer very slightly.