mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Minor reorder
This commit is contained in:
10
src/main.cpp
10
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)
|
||||
|
||||
Reference in New Issue
Block a user