Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
#pragma once
#include <cstdint>
#include <string_view>
namespace veyra::ngx {
// Defaults for a fresh UI only. Explicit choices restored from a preset or
// session win. Unknown/professional adapters are not guessed from a PCI range.
constexpr bool preferSfNr(uint32_t vendorId, std::wstring_view description) {
return vendorId == 0x10DE && (description.find(L"RTX 20") != description.npos ||
description.find(L"RTX 30") != description.npos || description.find(L"RTX 40") != description.npos ||
description.find(L"RTX 50") != description.npos);
}
// The experimental profile only changes a successful query for the exact
// selected Ampere adapter. Other GPUs and driver failures retain their result.
constexpr bool rewriteNrAmpereArchitecture(uint32_t& architecture, bool selected, int result) {
if(result!=0||!selected||(architecture&0xFFFFFFF0u)!=0x170u)return false;
architecture=0x1B0u;
return true;
}
// The rewrite suits builds that put Ampere-runnable kernels in the Blackwell
// slot (NeuralScreen's 310.8.0.0). The ShortFuse "SF" family (310.8.2.x and the
// later Lecram 310.8.3.x) lifts the gate itself and picks an FP16 route from the
// real architecture, so reporting Blackwell there would select kernels Ampere
// cannot run. The user-approved compat-fp16-310.9.16-cuda13.4.3 build also
// supplies SM75/86/89 kernels and needs the real architecture. This policy is
// used only for the explicitly selected compatible NR slot, never SR/FG.
// Versions come from the loaded DLL's VS_FIXEDFILEINFO; unknown builds retain
// the historical policy instead of treating all future versions as compatible.
constexpr bool nrRuntimeNeedsAmpereRewrite(uint32_t fileVersionMs, uint32_t fileVersionLs) {
const uint32_t major=fileVersionMs>>16, minor=fileVersionMs&0xFFFFu, build=fileVersionLs>>16;
const bool sfLegacy=major==310u&&minor==8u&&build>=2u;
const bool sf310916=fileVersionMs==((310u<<16)|9u)&&fileVersionLs==(16u<<16);
return !(sfLegacy||sf310916);
}
}