diff options
author | David Robillard <d@drobilla.net> | 2020-10-03 19:38:49 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-03 19:38:49 +0200 |
commit | 3da720328256b727de4f9fe5e56cd38007f98e7c (patch) | |
tree | 670195863cd3ca18732afff1f51b75ac3a13fddd /examples/demo_utils.h | |
parent | 95703acffae830fff046c4eb5f895743c6fabd4a (diff) | |
download | pugl-3da720328256b727de4f9fe5e56cd38007f98e7c.tar.gz pugl-3da720328256b727de4f9fe5e56cd38007f98e7c.tar.bz2 pugl-3da720328256b727de4f9fe5e56cd38007f98e7c.zip |
Change FPS print format in demos for consistency with other output
Diffstat (limited to 'examples/demo_utils.h')
-rw-r--r-- | examples/demo_utils.h | 6 |
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; |