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++
phase-3 work: fix unsigned underflow in endurance memory growth calculation
Veyra Goal Agent0244f8f1dc14
diff --git a/tools/media_probe/main.cpp b/tools/media_probe/main.cppindex d7dca3b9..28c0f2d6 100644--- a/tools/media_probe/main.cpp+++ b/tools/media_probe/main.cpp@@ -946,8 +946,8 @@ int runD3d12VADecode(const std::wstring& input, uint32_t frames, const std::strimemorySamples.size(),static_cast<double>(baseWs) / (1024 * 1024), static_cast<double>(finalWs) / (1024 * 1024),static_cast<double>(baseCommit) / (1024 * 1024), static_cast<double>(finalCommit) / (1024 * 1024),- static_cast<double>(finalWs - baseWs) / (1024 * 1024),- static_cast<double>(finalCommit - baseCommit) / (1024 * 1024));+ static_cast<double>(static_cast<int64_t>(finalWs) - static_cast<int64_t>(baseWs)) / (1024 * 1024),+ static_cast<double>(static_cast<int64_t>(finalCommit) - static_cast<int64_t>(baseCommit)) / (1024 * 1024));json += std::format(" \"debugInfoQueue\": {{\"active\": {}, \"storedMessages\": {}, \"errorMessages\": {}}}\n",g_infoQueueActive ? "true" : "false", g_infoQueueStored, g_infoQueueErrors);@@ -959,8 +959,8 @@ int runD3d12VADecode(const std::wstring& input, uint32_t frames, const std::stri// P1 #5: in endurance mode, working set growth must stay under 256MB.const bool nrOk = nrEvaluateSuccess == framesDecoded;const bool memoryOk = !endurance ||- (static_cast<double>(finalWs - baseWs) / (1024 * 1024) < 256.0 &&- static_cast<double>(finalCommit - baseCommit) / (1024 * 1024) < 256.0);+ (static_cast<double>(static_cast<int64_t>(finalWs) - static_cast<int64_t>(baseWs)) / (1024 * 1024) < 256.0 &&+ static_cast<double>(static_cast<int64_t>(finalCommit) - static_cast<int64_t>(baseCommit)) / (1024 * 1024) < 256.0);const bool ok = usedD3D12Frames && nrOk && memoryOk &&(endurance || framesDecoded >= frames || endOfFile);veyra::log::info("media-probe", ok ? "d3d12va: PASS" : "d3d12va: FAIL");