aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8bfe021..bd4be62 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2679,6 +2679,11 @@ int main(int argc, char **argv) {
}
}
+ const bool damaged = !capture->is_damaged || capture->is_damaged(capture);
+ if(damaged) {
+ ++damage_fps_counter;
+ }
+
++fps_counter;
double time_now = clock_get_monotonic_seconds();
double frame_timer_elapsed = time_now - frame_timer_start;
@@ -2692,11 +2697,6 @@ int main(int argc, char **argv) {
damage_fps_counter = 0;
}
- const bool damaged = !capture->is_damaged || capture->is_damaged(capture);
- if(damaged) {
- ++damage_fps_counter;
- }
-
double frame_time_overflow = frame_timer_elapsed - target_fps;
if (frame_time_overflow >= 0.0 && damaged) {
if(capture->clear_damage)