Android fps log output
This commit is contained in:
parent
def86e02f0
commit
267b78f9fc
1 changed files with 7 additions and 0 deletions
|
|
@ -403,6 +403,13 @@ void VulkanExampleBase::renderLoop()
|
|||
timer -= 1.0f;
|
||||
}
|
||||
}
|
||||
fpsTimer += (float)tDiff;
|
||||
if (fpsTimer > 1000.0f)
|
||||
{
|
||||
LOGD("%d fps", frameCounter);
|
||||
fpsTimer = 0.0f;
|
||||
frameCounter = 0.0f;
|
||||
}
|
||||
// Check gamepad state
|
||||
const float deadZone = 0.0015f;
|
||||
// todo : check if gamepad is present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue