From f53d7b30b1afab466257fee3d3a3823cff3ff2ad Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 14 Sep 2024 13:44:14 +0200 Subject: Allow recording at very low fps --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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)); -- cgit v1.2.3