Closed
Description
In following two case, encoding latency will be totally different(both of them are set low-latency mode):
case 1:
// Continuous submit frame
setProperty(low-latency-mode, true);
setProperty(query-timeout, 50);
while (true) {
auto t1 = cur_time();
submitFrame();
queryOutput();
auto t2 = cur_time();
auto took_ms = t2 - t1; **// 1080P will took 4ms on my pc;**
}
case2:
// submit frame every 16ms;
setProperty(low-latency-mode, true);
setProperty(query-timeout, 50);
while (true) {
auto t1 = cur_time();
submitFrame();
queryOutput();
auto t2 = cur_time();
auto took_ms = t2 - t1; **// 1080P will took 12ms on my pc;**
sleep(16 - took_ms);
}
Both of them are low-latency mode, why the encoding latency totally different.
It can be reproduced by 'EncoderLatency' example.