Call DwmFlush on VSync (might help with stuttering). Note: Requires Windows Vista or later.

This commit is contained in:
Colby Klein
2017-05-24 03:37:25 -07:00
parent 826b902312
commit c5f51d1e5a
+7
View File
@@ -12,6 +12,8 @@
#include "archutils/Win32/WindowIcon.h"
#include "archutils/Win32/GetFileInformation.h"
#include "CommandLineActions.h"
#include <dwmapi.h>
#pragma comment(lib, "dwmapi.lib")
#include <set>
@@ -495,6 +497,11 @@ void GraphicsWindow::Update()
HOOKS->SetHasFocus( g_bHasFocus );
if (g_CurrentParams.vsync)
{
DwmFlush();
}
if( g_bResolutionChanged && DISPLAY != NULL )
{
//LOG->Warn( "Changing resolution" );