summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sgunderson@bigfoot.com>2014-01-22 20:28:49 (GMT)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>2014-03-13 21:16:54 (GMT)
commita7640ab08689fb80c17386868d9e161960a4ffd2 (patch)
tree3185343b21de8aa6bcd7b9654368c0d393f0a803
parentf3e4009355bff682d8e0494e188abb539874541f (diff)
Increase the lookahead to 25 frames.
MLT can now handle larger lookaheads without adding parameter lag, and larger lookahead means smoother playback, especially when we go to a new transition or effect that needs new Movit shaders compiled.
-rw-r--r--src/renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp
index 75cfa7e..fb61b81 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -280,7 +280,7 @@ void Render::buildConsumer(const QString &profileName)
m_mltConsumer->set("terminate_on_pause", 0);
m_mltConsumer->set("deinterlace_method", KdenliveSettings::mltdeinterlacer().toUtf8().constData());
m_mltConsumer->set("rescale", KdenliveSettings::mltinterpolation().toUtf8().constData());
- m_mltConsumer->set("buffer", "1");
+ m_mltConsumer->set("buffer", "25");
m_mltConsumer->set("real_time", KdenliveSettings::mltthreads());
}
if (m_mltConsumer && m_mltConsumer->is_valid()) {
@@ -327,7 +327,7 @@ void Render::buildConsumer(const QString &profileName)
m_consumerThreadStartedEvent = m_mltConsumer->listen("consumer-thread-started", this, (mlt_listener) consumer_thread_started);
m_consumerThreadStoppedEvent = m_mltConsumer->listen("consumer-thread-stopped", this, (mlt_listener) consumer_thread_stopped);
}
- m_mltConsumer->set("buffer", "1");
+ m_mltConsumer->set("buffer", "25");
m_showFrameEvent = m_mltConsumer->listen("consumer-frame-show", this, (mlt_listener) consumer_gl_frame_show);
}
} else {