mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-18 19:20:52 +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();
|
||||
}
|
||||
|
||||
// Encode at a minimum of 10 FPS to avoid image quality issues with static content
|
||||
if(!frame->key_frame || images->peek()) {
|
||||
if(auto img = images->pop(100ms)) {
|
||||
session->device->convert(*img);
|
||||
}
|
||||
else if(images->running()) {
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
else if(!images->running()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user