You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Raise preview cache to CPUs*8 frames, max 64
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user