Disable fpsmon vulkan layer

This commit is contained in:
baldurk
2023-05-26 13:08:40 +01:00
parent 780ea478b1
commit d132b57582
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -137,6 +137,12 @@ class VulkanHook : LibraryHook
Process::RegisterEnvironmentModification(EnvironmentModification(
EnvMod::Set, EnvSep::NoSep, "VK_LAYER_bandicam_helper_DEBUG_1", "1"));
// fpsmon not only has a buggy layer but it also picks an absurdly generic disable environment
// variable :(. Hopefully no other program picks this, or if it does then it's probably not a
// bad thing to disable too
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_LAYER", "1"));
#if ENABLED(RDOC_WIN32)
// on windows support self-hosted capture by checking our filename and tweaking the env var we
// set
+6
View File
@@ -4635,6 +4635,12 @@ RDResult Vulkan_CreateReplayDevice(RDCFile *rdc, const ReplayOptions &opts, IRep
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "VK_LAYER_bandicam_helper_DEBUG_1", "1"));
// fpsmon not only has a buggy layer but it also picks an absurdly generic disable environment
// variable :(. Hopefully no other program picks this, or if it does then it's probably not a
// bad thing to disable too
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_LAYER", "1"));
Process::ApplyEnvironmentModification();
void *module = LoadVulkanLibrary();