Browse Source

Another decimal place in the profiling display

And Hoikas said, "I cannot tell a difference in the skinning times on my
not-crappy computer with only a tenth of a millisecond resolution." So we
now have hundredth of a millisecond in the profiling display. These are
the kinds of problems you have when developing with a machine that doesn't
suck. It would be nice if players didn't try to run the game on machines
from before the exctinction event that ended the Permian era.
Adam Johnson 12 years ago
parent
commit
c3ce9a07ab
  1. 6
      Sources/Plasma/NucleusLib/inc/plProfileManager.cpp

6
Sources/Plasma/NucleusLib/inc/plProfileManager.cpp

@ -348,11 +348,11 @@ void plProfileBase::IPrintValue(uint32_t value, char* buf, bool printType)
}
else if (hsCheckBits(fDisplayFlags, kDisplayFPS))
{
sprintf(buf, "%.1f", 1000.0f / TicksToMSec(value));
sprintf(buf, "%.2f", 1000.0f / TicksToMSec(value));
}
else if (hsCheckBits(fDisplayFlags, kDisplayTime))
{
sprintf(buf, "%.1f", TicksToMSec(value));
sprintf(buf, "%.2f", TicksToMSec(value));
if (printType)
strcat(buf, " ms");
}
@ -361,7 +361,7 @@ void plProfileBase::IPrintValue(uint32_t value, char* buf, bool printType)
if (printType)
{
if (value > (1024*1000))
sprintf(buf, "%.1f MB", float(value) / (1024.f * 1024.f));
sprintf(buf, "%.2f MB", float(value) / (1024.f * 1024.f));
else if (value > 1024)
sprintf(buf, "%d KB", value / 1024);
else

Loading…
Cancel
Save