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++
Interface draws with Direct3D 12, like 1.4.4's D3D12-only process
Veyra Goal Agenteb0fd66538bf
diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cppindex 2b55e20a..89a6a8a5 100644--- a/apps/veyra-qml/main.cpp+++ b/apps/veyra-qml/main.cpp@@ -15,6 +15,7 @@#include <QQmlContext>#include <QQuickItem>#include <QQuickWindow>+#include <QSGRendererInterface>#include <QKeyEvent>#include <QTimer>#include <atomic>@@ -33,6 +34,7 @@#include <shellapi.h>#include <shobjidl.h>#include <dbghelp.h>+#include <d3d12.h>#include <cmath>#include <cstdlib>@@ -404,6 +406,21 @@ int main(int argc, char** argv) {}}QApplication app(argc, argv);+ // The interface draws with Direct3D 12, like the video. Qt's default is Direct3D 11,+ // and a D3D11 device in the process changed how overlays treat it: RivaTuner (MSI+ // Afterburner) then crashed in d3d11.dll inside its own hooks while drawing its OSD on+ // the XeSS swapchain through D3D11On12 (field dumps 2026-10-01). 1.4.4 drew its UI with+ // GDI and had no D3D11 device; the overlays coexisted. VEYRA_UI_RHI=d3d11 restores+ // Qt's default; without a usable D3D12 device Qt keeps it too.+ {+ wchar_t forced[16]{};+ GetEnvironmentVariableW(L"VEYRA_UI_RHI", forced, 16);+ const bool wantD3d11 = _wcsicmp(forced, L"d3d11") == 0;+ const bool d3d12Usable = SUCCEEDED(D3D12CreateDevice(nullptr, D3D_FEATURE_LEVEL_11_0, __uuidof(ID3D12Device), nullptr));+ if (!wantD3d11 && d3d12Usable) QQuickWindow::setGraphicsApi(QSGRendererInterface::Direct3D12);+ veyra::log::info("app", std::format("interface renderer={} (d3d12 usable={} forced={})",+ !wantD3d11 && d3d12Usable ? "d3d12" : "d3d11", d3d12Usable, QString::fromWCharArray(forced).toStdString()));+ }app.setProperty("veyraLogFile", QString::fromStdWString(logPath.wstring()));app.setProperty("veyraUiScale", uiScale);// Frameless windows have no menu, yet DefWindowProc turns a bare Alt tap intodiff --git a/include/veyra/gfx/PresentationHooks.h b/include/veyra/gfx/PresentationHooks.hindex 8d8813e5..ff71c2c3 100644--- a/include/veyra/gfx/PresentationHooks.h+++ b/include/veyra/gfx/PresentationHooks.h@@ -34,6 +34,14 @@ inline const PresentationHook* injectedPresentationHook() {return nullptr;}+// The overlay that keeps XeSS frame generation off, or nullptr. Since the interface draws+// with Direct3D 12 (main.cpp) the crash may be gone; VEYRA_ALLOW_XESS_WITH_OVERLAYS=1 lets+// a tester with RivaTuner or GamePP installed try XeSS anyway without a new build.+inline const PresentationHook* xessBlockingHook() {+ if (GetEnvironmentVariableW(L"VEYRA_ALLOW_XESS_WITH_OVERLAYS", nullptr, 0) > 0) return nullptr;+ return injectedPresentationHook();+}+// Every loaded module that is neither part of Windows nor shipped next to the executable,// as "name; name; …" for the log. Overlays, recorders and monitoring tools show up here;// a field log with a mystery slowdown can then say which of them was in the process.diff --git a/src/gfx/PresentSink.cpp b/src/gfx/PresentSink.cppindex 80fea925..ae52be9c 100644--- a/src/gfx/PresentSink.cpp+++ b/src/gfx/PresentSink.cpp@@ -200,7 +200,7 @@ bool PresentSink::initialize(ID3D12Device* device, ID3D12CommandQueue* queue,swapChain_.Reset();// An injected overlay draws into the XeSS proxy swapchain and crashes the process// (PresentationHooks.h); present natively instead, as for any XeSS failure.- if(const auto* hook=injectedPresentationHook()){+ if(const auto* hook=xessBlockingHook()){log::warn("present",std::format("XeSS FG not started: {} is injected and crashes the XeSS swapchain; native presentation",hook->product));xessBlockedByHook_=true;}else{