Raise preview cache to CPUs*8 frames, max 64

This commit is contained in:
FeRD (Frank Dana)
2020-01-14 00:42:30 -05:00
parent 49972b21e9
commit 3321042672

View File

@@ -29,13 +29,14 @@
*/
#include "../../include/Qt/VideoCacheThread.h"
#include <algorithm>
namespace openshot
{
// Constructor
VideoCacheThread::VideoCacheThread()
: Thread("video-cache"), speed(1), is_playing(false), position(1)
, reader(NULL), max_frames(OPEN_MP_NUM_PROCESSORS * 2), current_display_frame(1)
, reader(NULL), max_frames(std::min(OPEN_MP_NUM_PROCESSORS * 8, 64)), current_display_frame(1)
{
}