diff --git a/libs/openFrameworks/utils/ofFpsCounter.cpp b/libs/openFrameworks/utils/ofFpsCounter.cpp index 022a8742af7..df2b6b0df9a 100644 --- a/libs/openFrameworks/utils/ofFpsCounter.cpp +++ b/libs/openFrameworks/utils/ofFpsCounter.cpp @@ -23,9 +23,9 @@ ofFpsCounter::ofFpsCounter(double targetFPS, int mode) void ofFpsCounter::newFrame(){ now = steady_clock::now(); + update(now); timestamps.push_back(now); lastFrameTime = now - then; - update(now); // std::lerp from c++20 on if (timeMode == 2) { // Filtered filterAlpha = std::clamp(filterAlpha, 0.0, 1.0);