Skip to content

Commit

Permalink
Reducing the # of threads on the Timeline in half, with a minimum of …
Browse files Browse the repository at this point in the history
…4. Trying to experiment and reduce stuttering.
  • Loading branch information
jonoomph committed Feb 6, 2021
1 parent 0c4e1bc commit 15695e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Timeline.cpp
Expand Up @@ -726,7 +726,8 @@ std::shared_ptr<Frame> 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'
Expand Down

0 comments on commit 15695e3

Please sign in to comment.