Android fps log output

This commit is contained in:
saschawillems 2016-04-15 21:24:50 +02:00
parent def86e02f0
commit 267b78f9fc

View file

@ -403,6 +403,13 @@ void VulkanExampleBase::renderLoop()
timer -= 1.0f; timer -= 1.0f;
} }
} }
fpsTimer += (float)tDiff;
if (fpsTimer > 1000.0f)
{
LOGD("%d fps", frameCounter);
fpsTimer = 0.0f;
frameCounter = 0.0f;
}
// Check gamepad state // Check gamepad state
const float deadZone = 0.0015f; const float deadZone = 0.0015f;
// todo : check if gamepad is present // todo : check if gamepad is present