aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-14 13:44:14 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-14 13:44:14 +0200
commitf53d7b30b1afab466257fee3d3a3823cff3ff2ad (patch)
tree26687e8447088ed6e899abb6daaedee929df0f3b
parent14d5c42f5e7bd2d1c15fe91efbe808dc90507593 (diff)
Allow recording at very low fps
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cc30842..736817f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3303,7 +3303,9 @@ int main(int argc, char **argv) {
bool hdr_metadata_set = false;
- const double damage_timeout_seconds = framerate_mode == FramerateMode::CONTENT ? 0.5 : 0.1;
+ double damage_timeout_seconds = framerate_mode == FramerateMode::CONTENT ? 0.5 : 0.1;
+ damage_timeout_seconds = std::max(damage_timeout_seconds, target_fps);
+
bool use_damage_tracking = false;
gsr_damage damage;
memset(&damage, 0, sizeof(damage));