Auto set Vulkan window minimize fix flag

This commit is contained in:
pizzaboxer 2023-05-14 03:02:33 +01:00
parent 22e1623d23
commit d96df87006
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -114,6 +114,11 @@ namespace Bloxstrap.Singletons
if (value != "Automatic")
SetValue(RenderingModes[value], "True");
if (value == "Vulkan")
SetValue("FFlagRenderVulkanFixMinimizeWindow", "True");
else if (GetValue("FFlagRenderVulkanFixMinimizeWindow") is not null)
SetValue("FFlagRenderVulkanFixMinimizeWindow", null);
}
public override void Load()
@ -124,6 +129,9 @@ namespace Bloxstrap.Singletons
if (GetValue("DFIntTaskSchedulerTargetFps") is null)
SetValue("DFIntTaskSchedulerTargetFps", 9999);
if (GetValue("FFlagDebugGraphicsPreferVulkan") == "True" && GetValue("FFlagRenderVulkanFixMinimizeWindow") is null)
SetValue("FFlagRenderVulkanFixMinimizeWindow", "True");
// exclusive fullscreen requires direct3d 10/11 to work
if (App.FastFlags.GetValue("FFlagHandleAltEnterFullscreenManually") == "False")
{