From c3ce9a07ab473fb50f43be1e8f78533b6878459e Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 12 Jun 2013 17:31:35 -0400 Subject: [PATCH] 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. --- Sources/Plasma/NucleusLib/inc/plProfileManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Plasma/NucleusLib/inc/plProfileManager.cpp b/Sources/Plasma/NucleusLib/inc/plProfileManager.cpp index e19d7c9a..deb78999 100644 --- a/Sources/Plasma/NucleusLib/inc/plProfileManager.cpp +++ b/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