mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[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:
parent
b058cbe9fe
commit
2f8b139131
@ -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];
|
||||||
|
@ -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}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user