Skip to content

Commit e66f058

Browse files
committed
Fix ofFpsCounter value offset update(now)
1 parent 3d94d50 commit e66f058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/openFrameworks/utils/ofFpsCounter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ ofFpsCounter::ofFpsCounter(double targetFPS, int mode)
2323

2424
void ofFpsCounter::newFrame(){
2525
now = steady_clock::now();
26+
update(now);
2627
timestamps.push_back(now);
2728
lastFrameTime = now - then;
28-
update(now);
2929
// std::lerp from c++20 on
3030
if (timeMode == 2) { // Filtered
3131
filterAlpha = std::clamp(filterAlpha, 0.0, 1.0);

0 commit comments

Comments
 (0)