Allow FFmpeg renderers to enforce V-sync being enabled or disabled

This commit is contained in:
Cameron Gutman
2018-09-03 20:57:09 -04:00
parent fa93364ddd
commit 2c068a99a3
10 changed files with 51 additions and 0 deletions
@@ -201,6 +201,14 @@ public:
return 0;
}
virtual IFFmpegRenderer::VSyncConstraint getVsyncConstraint() override
{
// This renderer is inherently tied to V-sync due how we're
// rendering with AVSampleBufferDisplay layer. Running without
// the V-Sync source leads to massive stuttering.
return VSYNC_FORCE_ON;
}
private:
void setupDisplayLayer()
{