mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 13:44:17 +00:00
Improve long render time logic
This commit is contained in:
parent
78915e0b99
commit
9799b82d53
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
#endif
|
||||
|
||||
#define FRAME_HISTORY_ENTRIES 8
|
||||
#define RENDER_TIME_HISTORY_ENTRIES 8
|
||||
#define RENDER_TIME_HISTORY_ENTRIES 20
|
||||
|
||||
// We may be woken up slightly late so don't go all the way
|
||||
// up to the next V-sync since we may accidentally step into
|
||||
|
@ -218,7 +218,7 @@ void Pacer::renderFrame(AVFrame* frame)
|
|||
// there must have been frames pending in the pipeline that are blocking us.
|
||||
// Drop our this frame to clear the backed up display pipeline.
|
||||
for (int renderTime : m_RenderTimeHistory) {
|
||||
if (renderTime <= 1000 / m_DisplayFps) {
|
||||
if (renderTime < 1000 / m_DisplayFps) {
|
||||
dropFrame = false;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue