mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 14:56:57 +02:00
Round FPS display.
This commit is contained in:
parent
68371f8c3f
commit
46b3d829d5
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ void Webcam::renderPreview(int screenWidth, int screenHeight) {
|
|||
glDisable(GL_TEXTURE_2D);
|
||||
|
||||
char fps[20];
|
||||
sprintf(fps, "FPS: %.4g", _frameCount * 1000000.0f / (usecTimestampNow() - _startTimestamp));
|
||||
sprintf(fps, "FPS: %d", (int)(roundf(_frameCount * 1000000.0f / (usecTimestampNow() - _startTimestamp))));
|
||||
drawtext(left, top + PREVIEW_HEIGHT + 20, 0.10, 0, 1, 0, fps);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue