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++
test: isolate fixed 6X cadence and document failed scheduling experiments
Veyra Goal Agent5e0533b10367
diff --git a/docs/FG_CADENCE_REPAIR_PLAN_2026-09-20.md b/docs/FG_CADENCE_REPAIR_PLAN_2026-09-20.mdindex 90cb98e2..1e7c6bd1 100644--- a/docs/FG_CADENCE_REPAIR_PLAN_2026-09-20.md+++ b/docs/FG_CADENCE_REPAIR_PLAN_2026-09-20.md@@ -20,3 +20,22 @@ New outputs: E:/项目/Veyra/tests/fg-cadence-repair-20260920, logs/fg-cadence-r- Combining all MFG evaluations into a single command list reduced measured output to about 72 FPS; reverted. Servicing older presentations during producer slot waits reached only about 89 FPS; reverted. No CommandSlotRing changes retained.- XeSS is included in the active goal. Test the same media/effects at 2X and 4X, checking SDK generation counters separately from application Present calls; provider-owned subframe timing needs separate evidence.- Final acceptance: sustained matched DLSS 6X/2X; XeSS 2X/4X; dynamic multiplier GPU validity/PTS and recovery tests; CPU policy and application lifecycle/startup. Results belong in FG_CADENCE_REPAIR_ACCEPTANCE_2026-09-20.md.++## Fixed 6X follow-up: not yet accepted++User explicitly requires fixed 6X cadence repair in addition to the fallback checkpoint 0050870. Tests below bypass the capacity controller; multiplier remains 6. None proves NR-on fixed 6X repaired.++| Run | Settings / duration | Retained submission FPS | P95 interval ms | Complete six-frame batches |+| --- | --- | --- | --- | --- |+| fixed6-slots16 | NR on, 16 command slots, 45s | 61.196 | 18.0236 | 0 |+| fixed6-nr-off | NR/SR off, original 6 slots, 30s | 360.002 | 3.3488 | 371 |+| barrier6 | NR on, avoid repeated input/depth COMMON transitions, 45s | 77.230 | 17.7609 | 0 |+| phase20-slots16 | NR on, 16 slots, file presentation phase delayed 20ms, 45s | 62.609 | 17.7917 | 0 |++Each trace is only the final bounded retention window, not the entire test. NR-off retained 6.206s, max interval 4.1553ms, no interval over16.667ms, PTS steps 2.7778ms. This demonstrates valid full6X submission with headroom; disabling NR is diagnostic, not a proposed user solution. NR-on measured GPU work is about17-18ms per60Hz input versus16.667ms budget. Enlarging the ring removed CPU slot waits but did not repair deadline losses. This does not prove all observed stalls are unavoidable compute limits.++Input/depth barrier experiment and fixed20ms phase experiment were reverted for lack of benefit. The latter also added video phase lag and is not an audio synchronization fix. Default command ring remains6. Two bounded test hooks remain: VEYRA_TEST_COMMAND_SLOTS (6..24), VEYRA_TEST_FIXED_FG_MULTIPLIER (presence bypasses automatic multiplier selection). Normal runs do not set them.++Evidence: E:/项目/Veyra/tests/fg-cadence-repair-20260920/{fixed6-slots16,fixed6-nr-off,barrier6,phase20-slots16}, corresponding stdout/stderr/JSON files; build logs slots-build.log, barrier-build.log, phase-build.log in E:/项目/Veyra/logs/fg-cadence-repair-20260920. All bounded harness runs exited0 for lifecycle only: minimumTargetRatio=0 deliberately disables a target-throughput assertion. No scanout measurement or subjective smoothness claim follows from these numbers.++Next investigation must address the overload equilibrium: admitting work by the last generated deadline permits earlier subframes to expire, and repeated reject/warmup transitions remove additional temporal coverage. A fixed phase shift cannot cure a sustained throughput deficit. Any replacement must preserve original media time/audio speed, bounded queue/latency, accurate effective multiplier reporting and reset/resource lifetime correctness. XeSS final regression and lifecycle acceptance remain pending. Goal remains active; no shutdown until final work/report is complete.diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 68b56d2e..d3a016b1 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -4734,3 +4734,9 @@ Implemented per-frame file readiness and measured preview capacity fallback. ReqOutputs: E:/项目/Veyra/tests/fg-cadence-repair-20260920 (baseline2/6, final2/6, admission6, JSON traces), logs/fg-cadence-repair-20260920 (final-build.log, cpu-final.log), tmp/fg-cadence-repair-20260920; build reused build/slider-reset-20260919. All tests run using scripts/run-short-test.ps1, limits <=185s. Combining FG command lists and servicing presentation during slot waits did not sufficiently improve throughput and were reverted.User explicitly clarified automatic downshift is only a fallback; full6X uneven presentation still must be investigated. Saving this verified improvement before further fixed6X experiments. XeSS and final lifecycle verification remain pending. No package, push, release or shutdown yet.++## 2026-09-20 Fixed 6X diagnostic follow-up++Confirmed full6X with effects off on p001.mp4: retained360.002 software submissions/s, P95 interval3.3488ms; not the requested NR-on acceptance. NR-on enlarged command ring removes CPU waits but remains61.196/s. Removing repeated FG input/depth COMMON transitions yielded77.230/s; adding fixed20ms file phase with16 slots yielded62.609/s. Both experiments reverted. Details, boundaries and artifact paths are appended to docs/FG_CADENCE_REPAIR_PLAN_2026-09-20.md. No new runtime files.++Commands: scripts/build-isolated.ps1 with reused build/slider-reset-20260919, target veyra_fg_sustained_tests, DisplayVersion1.4.3, explicit E:/项目/Veyra/tmp/fg-cadence-repair-20260920; scripts/run-short-test.ps1 with p001, multiplier6, profile file-4k, duration30/45 and timeout110; python scripts/acceptance/analyze-fg-cadence.py <run>/frame-trace.txt --trace --output <run>.json. One analyzer invocation ran before barrier6 exited and correctly reported missing trace; repeated after process exit successfully. All GPU runs sequential. Current fixed6X NR-on issue remains unresolved, and the active goal is not marked complete. No shutdown, package or publication.diff --git a/src/engine/EngineController.cpp b/src/engine/EngineController.cppindex 744cb13b..177c7aca 100644--- a/src/engine/EngineController.cpp+++ b/src/engine/EngineController.cpp@@ -194,7 +194,9 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,stry {do {Status st=Status::Ok;gfx::DeviceContextDesc dd;dd.commandSlotCount=6;- if(!ctx.initialize(dd,st)||!ring.initialize(ctx.device(),ctx.directQueue(),ctx.fence(),ctx.fenceEvent(),6,st)){status(L"D3D12初始化失败,请查看诊断",true);break;}+ wchar_t testSlots[16]{};unsigned commandSlots=6;+ if(GetEnvironmentVariableW(L"VEYRA_TEST_COMMAND_SLOTS",testSlots,16))commandSlots=std::clamp(unsigned(_wtoi(testSlots)),6u,24u);+ if(!ctx.initialize(dd,st)||!ring.initialize(ctx.device(),ctx.directQueue(),ctx.fence(),ctx.fenceEvent(),commandSlots,st)){status(L"D3D12初始化失败,请查看诊断",true);break;}auto ext=std::filesystem::path(path).extension().wstring();for(auto& c:ext)c=towlower(c);const bool isImage=ext==L".png"||ext==L".jpg"||ext==L".jpeg";sink::RgbaImage image;@@ -1059,7 +1061,7 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s};if(fgBudgetRevision!=options.settings.revision){fgBudget.reset();fgCapacity.reset();pairLatency.reset();fgBudgetRevision=options.settings.revision;}previewFgMultiplier=options.fgMultiplier;- if(!isImage&&!rereadCached&&options.fg&&!presentSinkFrameGeneration(options.settings.frameGenerationBackend))+ if(!isImage&&!rereadCached&&options.fg&&!presentSinkFrameGeneration(options.settings.frameGenerationBackend)&&!GetEnvironmentVariableW(L"VEYRA_TEST_FIXED_FG_MULTIPLIER",nullptr,0))previewFgMultiplier=fgCapacity.select(options.fgMultiplier,double(liveSourceInterval100ns(pkt.duration,activeSource->info().averageFps))/10000);{std::lock_guard lock(mutex_);snapshot_.previewFgMultiplier=previewFgMultiplier;}const auto liveInterval=livePhaseInterval100ns(pkt.duration,activeSource->info().averageFps/(isScreen&&halfRate?2:1),isScreen);