[host] windows: set DwmFlush default to off

This new feature while helps on some systems, others using freesync or
higher refresh rates where the capture can't keep up will limit to
fractions of the refresh rate. Better to disable and allow users to
opt-in.
This commit is contained in:
Geoffrey McRae 2022-01-06 19:20:08 +11:00
parent b058cbe9fe
commit 2f8b139131
2 changed files with 2 additions and 3 deletions

View File

@ -168,7 +168,7 @@ static void dxgi_initOptions(void)
.name = "dwmFlush", .name = "dwmFlush",
.description = "Use DwmFlush to sync the capture to the windows presentation inverval", .description = "Use DwmFlush to sync the capture to the windows presentation inverval",
.type = OPTION_TYPE_BOOL, .type = OPTION_TYPE_BOOL,
.value.x_bool = true .value.x_bool = false
}, },
{0} {0}
}; };
@ -842,7 +842,6 @@ static CaptureResult dxgi_capture(void)
} }
this->needsRelease = true; this->needsRelease = true;
if (frameInfo.LastPresentTime.QuadPart != 0) if (frameInfo.LastPresentTime.QuadPart != 0)
{ {
tex = &this->texture[this->texWIndex]; tex = &this->texture[this->texWIndex];

View File

@ -154,7 +154,7 @@ static void nvfbc_initOptions(void)
.name = "dwmFlush", .name = "dwmFlush",
.description = "Use DwmFlush to sync the capture to the windows presentation inverval", .description = "Use DwmFlush to sync the capture to the windows presentation inverval",
.type = OPTION_TYPE_BOOL, .type = OPTION_TYPE_BOOL,
.value.x_bool = true .value.x_bool = false
}, },
{0} {0}
}; };