Ensure the CVDisplayLink is synchronized to the display that our window is on

This commit is contained in:
Cameron Gutman
2018-09-03 20:19:24 -04:00
parent 9b1eef3f63
commit fa93364ddd
5 changed files with 153 additions and 74 deletions
@@ -143,7 +143,7 @@ bool Pacer::initialize(SDL_Window* window, int maxVideoFps, bool enableVsync)
m_DisplayFps, m_MaxVideoFps);
#if defined(Q_OS_DARWIN)
m_VsyncSource = new DisplayLinkVsyncSource(this);
m_VsyncSource = DisplayLinkVsyncSourceFactory::createVsyncSource(this);
#elif defined(Q_OS_WIN32)
m_VsyncSource = new DxVsyncSource(this);
#else