Skip to content
Permalink
Browse files
Track loading time
  • Loading branch information
rygorous committed Mar 4, 2013
1 parent 2504647 commit 5d4f838
Showing 1 changed file with 6 additions and 0 deletions.
@@ -99,8 +99,11 @@ static RunStatistics g_totalCullTime, g_renderTime, g_testTime, g_renderSceneTim
//-----------------------------------------------------------------------------
void MySample::Create()
{
CPUTTimerWin loadTimer;
CPUTAssetLibrary *pAssetLibrary = CPUTAssetLibrary::GetAssetLibrary();

loadTimer.StartTimer();

gLightDir.normalize();

// TODO: read from cmd line, using these as defaults
@@ -449,6 +452,9 @@ void MySample::Create()
mpCameraController->SetCamera(mpCamera);
mpCameraController->SetLookSpeed(0.004f);
mpCameraController->SetMoveSpeed(2.5f);

double loadTime = loadTimer.StopTimer();
dprintf("Load time: %.2fs\n", loadTime);
}

//-----------------------------------------------------------------------------

0 comments on commit 5d4f838

Please sign in to comment.