From 67b8d71c79a0965445d49c9cfe738b9dd688dfc2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 14 Feb 2024 06:30:20 +0100 Subject: [PATCH] Disable ReShade in the editor and project manager (if run via Vulkan) ReShade can still be used on projects run from the editor as well as exported projects. This avoids several issues: - ReShade doesn't play well with low-processor mode, making it hard to use unless the Update Continuously editor setting is enabled. - The ReShade overlay appears on every popup opened, which made popups unusable. - If you use a ReShade configuration that heavily affects the image, it won't affect the editor UI which may become unreadable as a result. This doesn't affect the editor being run via OpenGL or Direct3D 12 as ReShade is injected in a different manner when using those graphics APIs. --- main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 5e54a52f617..ceb2cbbae7e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2208,11 +2208,13 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph OS::get_singleton()->set_environment("DISABLE_MANGOHUD", "1"); // GH-57403. OS::get_singleton()->set_environment("DISABLE_RTSS_LAYER", "1"); // GH-57937. OS::get_singleton()->set_environment("DISABLE_VKBASALT", "1"); + OS::get_singleton()->set_environment("DISABLE_VK_LAYER_reshade_1", "1"); // GH-70849. } else { // Re-allow using Vulkan overlays, disabled while using the editor. OS::get_singleton()->unset_environment("DISABLE_MANGOHUD"); OS::get_singleton()->unset_environment("DISABLE_RTSS_LAYER"); OS::get_singleton()->unset_environment("DISABLE_VKBASALT"); + OS::get_singleton()->unset_environment("DISABLE_VK_LAYER_reshade_1"); } #endif