Call DwmFlush on VSync (might help with stuttering). Note: Requires Windows Vista or later.
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
#include "archutils/Win32/WindowIcon.h"
|
#include "archutils/Win32/WindowIcon.h"
|
||||||
#include "archutils/Win32/GetFileInformation.h"
|
#include "archutils/Win32/GetFileInformation.h"
|
||||||
#include "CommandLineActions.h"
|
#include "CommandLineActions.h"
|
||||||
|
#include <dwmapi.h>
|
||||||
|
#pragma comment(lib, "dwmapi.lib")
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
@@ -495,6 +497,11 @@ void GraphicsWindow::Update()
|
|||||||
|
|
||||||
HOOKS->SetHasFocus( g_bHasFocus );
|
HOOKS->SetHasFocus( g_bHasFocus );
|
||||||
|
|
||||||
|
if (g_CurrentParams.vsync)
|
||||||
|
{
|
||||||
|
DwmFlush();
|
||||||
|
}
|
||||||
|
|
||||||
if( g_bResolutionChanged && DISPLAY != NULL )
|
if( g_bResolutionChanged && DISPLAY != NULL )
|
||||||
{
|
{
|
||||||
//LOG->Warn( "Changing resolution" );
|
//LOG->Warn( "Changing resolution" );
|
||||||
|
|||||||
Reference in New Issue
Block a user