BGE: show profile in millisecond in addition to percentage.

This commit is contained in:
Benoit Bolsee
2009-04-21 09:20:47 +00:00
parent 2d054e00b0
commit 106b5a435c

View File

@@ -1401,7 +1401,7 @@ void KX_KetsjiEngine::RenderDebugProperties()
m_canvas->GetWidth(),
m_canvas->GetHeight());
double time = m_logger->GetAverage((KX_TimeCategory)j);
debugtxt.Format("%2.2f %%", time/tottime * 100.f);
debugtxt.Format("%.3fms (%2.2f %%)", time*1000.f, time/tottime * 100.f);
m_rendertools->RenderText2D(RAS_IRenderTools::RAS_TEXT_PADDED,
debugtxt.Ptr(),
xcoord + 60 ,ycoord,