BGE: show profile in millisecond in addition to percentage.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user