Improve fps for software encoding on Windows
This commit is contained in:
+1
-2
@@ -1038,8 +1038,7 @@ void encode_run(
|
|||||||
std::this_thread::sleep_until(next_frame);
|
std::this_thread::sleep_until(next_frame);
|
||||||
next_frame += delay;
|
next_frame += delay;
|
||||||
|
|
||||||
// When Moonlight request an IDR frame, send frames even if there is no new captured frame
|
if(images->peek()) {
|
||||||
if(!frame->key_frame || images->peek()) {
|
|
||||||
if(auto img = images->pop(delay)) {
|
if(auto img = images->pop(delay)) {
|
||||||
session->device->convert(*img);
|
session->device->convert(*img);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user