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.
This commit is contained in:
parent
e5a3fd1e53
commit
67b8d71c79
@ -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_MANGOHUD", "1"); // GH-57403.
|
||||||
OS::get_singleton()->set_environment("DISABLE_RTSS_LAYER", "1"); // GH-57937.
|
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_VKBASALT", "1");
|
||||||
|
OS::get_singleton()->set_environment("DISABLE_VK_LAYER_reshade_1", "1"); // GH-70849.
|
||||||
} else {
|
} else {
|
||||||
// Re-allow using Vulkan overlays, disabled while using the editor.
|
// Re-allow using Vulkan overlays, disabled while using the editor.
|
||||||
OS::get_singleton()->unset_environment("DISABLE_MANGOHUD");
|
OS::get_singleton()->unset_environment("DISABLE_MANGOHUD");
|
||||||
OS::get_singleton()->unset_environment("DISABLE_RTSS_LAYER");
|
OS::get_singleton()->unset_environment("DISABLE_RTSS_LAYER");
|
||||||
OS::get_singleton()->unset_environment("DISABLE_VKBASALT");
|
OS::get_singleton()->unset_environment("DISABLE_VKBASALT");
|
||||||
|
OS::get_singleton()->unset_environment("DISABLE_VK_LAYER_reshade_1");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user