floorf was eating a fair bit of cpu time here.

This commit is contained in:
Shyotl
2018-11-19 00:38:13 -06:00
parent 736696ac36
commit d7ee098a10

View File

@@ -199,9 +199,9 @@ void LLSkinningUtil::getPerVertexSkinMatrix(
{
F32 w = weights[k];
idx[k] = (S32) floorf(w);
idx[k] = (S32) w;
wght[k] = w - floorf(w);
wght[k] = w - idx[k];
scale += wght[k];
}
if (handle_bad_scale && scale <= 0.f)