Added extra precision to the app,cull and draw timings in the Viewer.
This commit is contained in:
parent
f0bb34c4fe
commit
c614c2f622
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user