Skip to content

Commit

Permalink
util: Spoof Pascal when detecting War Thunder
Browse files Browse the repository at this point in the history
This game gets into an stack overflow after enabling DLSS,
the reason is unfortunately unknown.
  • Loading branch information
jp7677 committed Apr 21, 2024
1 parent d0a124e commit b989684
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 @@ -131,12 +131,21 @@ namespace dxvk::env {
return getExecutableName() == std::string("MonsterHunterWorld.exe");
}

bool isWarThunder() {
return getExecutableName() == std::string("aces.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");
return true;
}

if (architectureId >= NV_GPU_ARCHITECTURE_TU100 && isWarThunder()) {
log::write("Spoofing Pascal for Turing and later due to detecting aces.exe (War Thunder)");
return true;
}

return false;
}

Expand Down

0 comments on commit b989684

Please sign in to comment.