Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spoof Pascal for War Thunder #172

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/d3d/nvapi_d3d_low_latency_device.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include "nvapi_d3d_low_latency_device.h"

namespace dxvk {
LowLatencyFrameIdGenerator::LowLatencyFrameIdGenerator() : m_nextLowLatencyDeviceFrameId(1),
m_applicationIdList({0}) {}
LowLatencyFrameIdGenerator::LowLatencyFrameIdGenerator()
: m_nextLowLatencyDeviceFrameId(1),
m_applicationIdList({0}) {}

LowLatencyFrameIdGenerator::~LowLatencyFrameIdGenerator() = default;

Expand Down
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