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

diagnostics(fg): correlate cadence gaps with media and admission

Veyra Goal Agent103f1de81d96
diff --git a/docs/FG_CADENCE_REPAIR_ACCEPTANCE_2026-09-20.md b/docs/FG_CADENCE_REPAIR_ACCEPTANCE_2026-09-20.md
index 2203dd28..604b10a0 100644
--- a/docs/FG_CADENCE_REPAIR_ACCEPTANCE_2026-09-20.md
+++ b/docs/FG_CADENCE_REPAIR_ACCEPTANCE_2026-09-20.md
@@ -31,6 +31,15 @@ E:/项目/Veyra/{tests,logs}/fg-cadence-repair-20260920.
The temporary double-callback experiment switch was removed before these
final runs. The historical results below describe the prior checkpoint.
+Gap attribution: analyze-fg-cadence.py now joins consecutive Present events
+with their media PTS, admission state and CPU-observed ready time. In
+reseed-default6 all88 gaps over10ms have a16.667ms media step and correspond
+to the88 rejected groups. These gaps lack intermediate generated samples;
+moving a ready real frame earlier cannot recreate that missing motion.
+reseed-default2 has no gap over10ms. Files reseed-gap-causes.json and
+reseed2-gap-causes.json retain the analysis. This does not identify every
+GPU scheduling cause of rejection or prove a hardware limit.
+
## Scope and result
Branch: `codex/fg-cadence-audit-20260920`. RTX5070, user p001.mp4,
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 5b448089..968be500 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -1,5 +1,18 @@
# Veyra 工作记录
+## 2026-09-20 Fixed6 gap attribution
+
+Saved verified seed implementation as57213e1,
+checkpoint/fg-same-input-seed-20260920. Extended existing cadence analysis
+with media-step/admission/ready correlation. Ran Python analyzer --trace
+against reseed-default6 and reseed-default2 frame-trace.txt; outputs under
+the same test root as reseed-gap-causes.json and reseed2-gap-causes.json.
+All88 fixed6 gaps over10ms coincide with16.667ms media steps and rejected
+groups; 2X has none. No generated discards in either retained window.
+Next investigation must address full-group rejection and serial stage cost,
+not claim that Present timing alone can replace missing motion samples.
+No product code changed in this diagnostic continuation; no GPU rerun needed.
+
## 2026-09-20 Affordable same-input FG seed
Full-group rejection previously forced another real-only warmup on the next
diff --git a/scripts/acceptance/analyze-fg-cadence.py b/scripts/acceptance/analyze-fg-cadence.py
index 725b21b0..570e2f1b 100644
--- a/scripts/acceptance/analyze-fg-cadence.py
+++ b/scripts/acceptance/analyze-fg-cadence.py
@@ -101,6 +101,18 @@ def analyze_trace(path):
transitions[key] = transitions.get(key, 0) + 1
span = (int(presents[-1]["host"]) - int(presents[0]["host"])) / 1e7
ready = {(e["batch"], e["detail"]): e for e in events if e["event"] == "FrameReady"}
+ gaps = []
+ for a, b in zip(presents, presents[1:]):
+ observed = ready.get((b["batch"], b["detail"]))
+ gaps.append({
+ "intervalMs": (int(b["host"]) - int(a["host"])) / 10000,
+ "mediaStepMs": (int(b["pts"]) - int(a["pts"])) / 10000,
+ "nextBatch": int(b["batch"]), "nextSubframe": int(b["detail"]),
+ "nextBatchState": state(b["batch"]),
+ "presentCpuMs": float(b["ms"]),
+ "readyObservedToPresentMs": (int(b["host"]) - int(observed["host"])) / 10000 if observed else None,
+ "readyObservedBeforePreviousPresent": int(observed["host"]) <= int(a["host"]) if observed else None,
+ })
discarded = [e for e in events if e["event"] == "Discarded"]
observed_delays = [(int(e["host"]) - int(ready[(e["batch"], e["detail"])]["host"])) / 10000
for e in discarded if (e["batch"], e["detail"]) in ready]
@@ -125,6 +137,10 @@ def analyze_trace(path):
"batchTransitions": transitions,
"discardedSubframes": discard_summary,
"presentCpuMs": distribution([float(p["ms"]) for p in presents]),
+ "longestGaps": sorted(gaps, key=lambda g: g["intervalMs"], reverse=True)[:12],
+ "longGapMediaStepsMs": distribution([g["mediaStepMs"] for g in gaps if g["intervalMs"] > 10]),
+ "longGapsOver10ms": sum(g["intervalMs"] > 10 for g in gaps),
+ "longGapsWithMediaStepOver10ms": sum(g["intervalMs"] > 10 and g["mediaStepMs"] > 10 for g in gaps),
"mediaStepMs": distribution([(int(b["pts"]) - int(a["pts"])) / 10000 for a, b in zip(presents, presents[1:])])}