You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Improving cache performance by preventing the cache from getting behind the currently displaying frame #
This commit is contained in:
@@ -102,6 +102,12 @@ namespace openshot
|
||||
// Ignore out of bounds frame exceptions
|
||||
}
|
||||
|
||||
// Is cache position behind current display frame?
|
||||
if (position < current_display_frame) {
|
||||
// Jump ahead
|
||||
position = current_display_frame;
|
||||
}
|
||||
|
||||
// Increment frame number
|
||||
position++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user