Skip to content

Commit

Permalink
util: Fake GPU queries success for XDefiant
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed May 26, 2024
1 parent 024ecaa commit dc3b1a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/util/util_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ namespace dxvk::env {
return getExecutableName() == std::string("aces.exe");
}

bool isXDefiant() {
return getExecutableName() == std::string("upc.exe");
}

bool needsPascalSpoofing(NV_GPU_ARCHITECTURE_ID architectureId) {
if (architectureId >= NV_GPU_ARCHITECTURE_TU100 && isMonsterHunterWorld()) {
log::write("Spoofing Pascal for Turing and later due to detecting MonsterHunterWorld.exe");
Expand All @@ -160,6 +164,11 @@ namespace dxvk::env {
return true;
}

if (isXDefiant()) {
log::write("Faking GPU query success due to detecting upc.exe (XDefiant)");
return true;
}

return false;
}
}

0 comments on commit dc3b1a5

Please sign in to comment.