<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 13, 2017 at 7:27 PM, <span dir="ltr"><<a href="mailto:ashok@multicorewareinc.com" target="_blank">ashok@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># HG changeset patch<br>
# User Ashok Kumar Mishra <<a href="mailto:ashok@multicorewareinc.com">ashok@multicorewareinc.com</a>><br>
# Date 1510320768 -19800<br>
# Fri Nov 10 19:02:48 2017 +0530<br>
# Node ID c4632652c590397bd875ee2ca05c8c<wbr>2f1284f792<br>
# Parent 563cbe1f4a21dcfe2117ccaa874b71<wbr>3d94434f92<br>
Encoder: avoid blocking in getEncodedPicture() for zero latency when multiple slices are enabled<br>
Improved performance by 10 - 15 fps depending upon preset and number of slices.<br></blockquote><div><br></div><div class="gmail_extra">Gains look impressive. Patch pushed to default branch.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
diff -r 563cbe1f4a21 -r c4632652c590 source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Wed Nov 08 17:08:18 2017 +0530<br>
+++ b/source/encoder/encoder.cpp Fri Nov 10 19:02:48 2017 +0530<br>
@@ -387,7 +387,7 @@<br>
}<br>
}<br>
<br>
- m_bZeroLatency = !m_param->bframes && !m_param->lookaheadDepth && m_param->frameNumThreads == 1;<br>
+ m_bZeroLatency = !m_param->bframes && !m_param->lookaheadDepth && m_param->frameNumThreads == 1 && m_param->maxSlices == 1;<br>
<br>
m_aborted |= parseLambdaFile(m_param);<br>
<br>
______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
</blockquote></div><br></div></div>