StbTrueTypeFont: Use fabsf instead of fabs #73
Hey @mosra !
As discussed via gitter, the performance of StbTrueTypeFont on MSVC Debug builds is crazy bad. Through profiling I figured out that all of the time is spent in
I tried to figure out if there are different compile flags applied during compilation of imgui, but that doesn't seem to be the case.
@@ Coverage Diff @@ ## master #73 +/- ## ========================================== - Coverage 91% 90.96% -0.04% ========================================== Files 53 40 -13 Lines 4480 3410 -1070 ========================================== - Hits 4077 3102 -975 + Misses 403 308 -95
Hmm. This causes GCC to emit a warning:
I'll need to investigate why it's using doubles at all. Maybe that's responsible for the remaining perf drop.