aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-03 19:38:49 +0200
committerDavid Robillard <d@drobilla.net>2020-10-03 19:38:49 +0200
commit3da720328256b727de4f9fe5e56cd38007f98e7c (patch)
tree670195863cd3ca18732afff1f51b75ac3a13fddd
parent95703acffae830fff046c4eb5f895743c6fabd4a (diff)
Change FPS print format in demos for consistency with other output
-rw-r--r--examples/demo_utils.h6
1 files 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;