mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-29 22:20:24 +00:00
Enforce 10 FPS encoding frame rate floor to improve static image quality (#754)
This commit is contained in:
parent
43d47c6f3c
commit
696a11942c
@ -1134,14 +1134,12 @@ void encode_run(
|
|||||||
idr_events->pop();
|
idr_events->pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Encode at a minimum of 10 FPS to avoid image quality issues with static content
|
||||||
if(!frame->key_frame || images->peek()) {
|
if(!frame->key_frame || images->peek()) {
|
||||||
if(auto img = images->pop(100ms)) {
|
if(auto img = images->pop(100ms)) {
|
||||||
session->device->convert(*img);
|
session->device->convert(*img);
|
||||||
}
|
}
|
||||||
else if(images->running()) {
|
else if(!images->running()) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user