Skip to content

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++

Add VEYRA_TEST_LOG_ROTATE_BYTES for log rotation tests

Veyra Goal Agent3db8800126fd
diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cpp
index 4a3de9b0..09bddfe1 100644
--- a/apps/veyra-qml/main.cpp
+++ b/apps/veyra-qml/main.cpp
@@ -439,7 +439,12 @@ static int runApplication(int argc, char** argv, QString& restartProgram, QStrin
// Bounded: earlier sessions move to veyra-qml.old.log once this file passes
// 16 MB at start, and a session that alone reaches 64 MB (about five hours of
// capture) continues in a fresh file (audit 2026-10-15 B3).
- veyra::Logger::instance().setRotation(16ull << 20, 64ull << 20);
+ uint64_t rotateAtStart = 16ull << 20, rotateWhileRunning = 64ull << 20;
+ // VEYRA_TEST_LOG_ROTATE_BYTES=N sets both limits to N bytes (rotation tests only).
+ wchar_t rotateTest[32]{};
+ if (GetEnvironmentVariableW(L"VEYRA_TEST_LOG_ROTATE_BYTES", rotateTest, 32) > 0 && _wtoi64(rotateTest) > 0)
+ rotateAtStart = rotateWhileRunning = uint64_t(_wtoi64(rotateTest));
+ veyra::Logger::instance().setRotation(rotateAtStart, rotateWhileRunning);
if (!veyra::Logger::instance().openFile(logPath.wstring(), true)) {
logPath = logPath.parent_path() / (L"veyra-qml-" + std::to_wstring(GetCurrentProcessId()) + L".log");
(void)veyra::Logger::instance().openFile(logPath.wstring(), true);