Allow Pacer to wait for frames up until a few ms before v-sync for better smoothness and lower latency

This commit is contained in:
Cameron Gutman
2018-08-20 17:53:35 -07:00
parent d6e7173af0
commit 6b395c816f
8 changed files with 49 additions and 14 deletions
@@ -11,7 +11,7 @@ public:
virtual ~DisplayLinkVsyncSource();
virtual bool initialize(SDL_Window* window);
virtual bool initialize(SDL_Window* window, int displayFps);
private:
static
@@ -26,5 +26,6 @@ private:
Pacer* m_Pacer;
CVDisplayLinkRef m_DisplayLink;
int m_DisplayFps;
};