From 15695e3c0c9e300aab2a4c8b300e7a09621c1b67 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Fri, 5 Feb 2021 18:18:31 -0600 Subject: [PATCH] Reducing the # of threads on the Timeline in half, with a minimum of 4. Trying to experiment and reduce stuttering. --- src/Timeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Timeline.cpp b/src/Timeline.cpp index 8065de14a..b4d13b04e 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -726,7 +726,8 @@ std::shared_ptr Timeline::GetFrame(int64_t requested_frame) } // Minimum number of frames to process (for performance reasons) - int minimum_frames = max_concurrent_frames; + // Too many causes stuttering, too few causes stuttering + int minimum_frames = std::min(max_concurrent_frames / 2, 4); // Get a list of clips that intersect with the requested section of timeline // This also opens the readers for intersecting clips, and marks non-intersecting clips as 'needs closing'