Add settings option to disable V-sync for lowest possible latency on Windows

This commit is contained in:
Cameron Gutman
2018-08-20 22:25:19 -07:00
parent 7661f5a3d7
commit f9cdd49d2e
4 changed files with 27 additions and 8 deletions

View File

@@ -834,7 +834,7 @@ void Session::exec()
if (!chooseDecoder(m_Preferences.videoDecoderSelection,
m_Window, m_ActiveVideoFormat, m_ActiveVideoWidth,
m_ActiveVideoHeight, m_ActiveVideoFrameRate,
true, // TODO: User configuration for V-sync
m_Preferences.enableVsync,
s_ActiveSession->m_VideoDecoder)) {
SDL_AtomicUnlock(&m_DecoderLock);
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,