diff options
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; |