From c614c2f6228b58f62644080b1565bce87fe4a56d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 4 Oct 2001 14:25:50 +0000 Subject: [PATCH] Added extra precision to the app,cull and draw timings in the Viewer. --- src/osgGLUT/Viewer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgGLUT/Viewer.cpp b/src/osgGLUT/Viewer.cpp index e88f612c8..8510b958d 100644 --- a/src/osgGLUT/Viewer.cpp +++ b/src/osgGLUT/Viewer.cpp @@ -633,15 +633,15 @@ void Viewer::showStats() char clin[72]; // buffer to print glColor4fv((GLfloat * )&app_color); - sprintf(clin,"App %.1f ms.", timeApp); + sprintf(clin,"App %.2f ms.", timeApp); displaytext((int)(.15f*tmax),(int)(0.98f*vh),clin); glColor4fv((GLfloat * )&cull_color); - sprintf(clin,"Cull %.1f ms.", timeCull); + sprintf(clin,"Cull %.2f ms.", timeCull); displaytext((int)(.35*tmax),(int)(0.98f*vh),clin); glColor4fv((GLfloat * )&draw_color); - sprintf(clin,"Draw %.1f ms.", timeDraw); + sprintf(clin,"Draw %.2f ms.", timeDraw); displaytext((int)(.55*tmax),(int)(0.98f*vh),clin); glColor4fv((GLfloat * )&frame_color);