FEX: Disable trace profiler by default

Use a config option to turn it on.
This commit is contained in:
Ryan Houdek committed 2025-10-20 10:25:17 -07:00
1 parent 87e8a9b6aa
commit ca697d0d5d
2 files changed
+11

No files matched your search

@@ -338,6 +338,13 @@
"Enables FEX's low-overhead sampling profile statistics.",
"Requires a supported version of Mangohud to see the results"
]
},
"EnableGpuvisProfiling": {
"Type": "bool",
"Default": "false",
"Desc": [
"Enables profiling when FEX was built with the gpuvis profiler backend."
]
}
},
"Hacks": {
+4
View File
@@ -70,6 +70,10 @@ static std::array<const char*, 2> TraceFSDirectories {
};
void Init() {
FEX_CONFIG_OPT(EnableGpuvisProfiling, ENABLEGPUVISPROFILING);
if (!EnableGpuvisProfiling()) {
return;
}
for (auto Path : TraceFSDirectories) {
#ifdef _WIN32
constexpr auto flags = O_WRONLY;