From 3da720328256b727de4f9fe5e56cd38007f98e7c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 Oct 2020 19:38:49 +0200 Subject: Change FPS print format in demos for consistency with other output --- examples/demo_utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/demo_utils.h b/examples/demo_utils.h index 6d3bb66..854aa94 100644 --- a/examples/demo_utils.h +++ b/examples/demo_utils.h @@ -162,10 +162,10 @@ puglPrintFps(const PuglWorld* world, if (thisTime > printer->lastReportTime + 5) { const double fps = *framesDrawn / (thisTime - printer->lastReportTime); fprintf(stderr, - "%u frames in %.0f seconds = %.3f FPS\n", + "FPS: %.2f (%u frames in %.0f seconds)\n", + fps, *framesDrawn, - thisTime - printer->lastReportTime, - fps); + thisTime - printer->lastReportTime); printer->lastReportTime = thisTime; *framesDrawn = 0; -- cgit v1.2.1