mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- gave vid_autoswitch CVAR a priority over vk_device selection
Try to mimic OpenGL GPU selection behavior with MoltenVK when automated graphics switching is disabled The CVAR isn't exposed in menu and its target audience is advanced users only
This commit is contained in:
parent
90c4e62e67
commit
15e0b6c8a7
1 changed files with 6 additions and 0 deletions
|
@ -367,6 +367,12 @@ public:
|
|||
|
||||
[ms_window setContentView:vulkanView];
|
||||
|
||||
if (!vid_autoswitch)
|
||||
{
|
||||
// CVAR from pre-Vulkan era has a priority over vk_device selection
|
||||
setenv("MVK_CONFIG_FORCE_LOW_POWER_GPU", "1", 0);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
m_vulkanDevice = new VulkanDevice();
|
||||
|
|
Loading…
Reference in a new issue