8000 Zdxsv: replay benchmark of the rollback cycle by inada-s-ai[bot] · Pull Request #607 · inada-s/pcsx2 · GitHub
[go: up one dir, main page]

Skip to content

Zdxsv: replay benchmark of the rollback cycle - #607

Merged
inada-s-ai[bot] merged 1 commit into
zdxsv-masterfrom
ai/replay-bench
Nov 16, 2026
Merged

inada-s-ai[bot] merged 1 commit into
zdxsv-masterfrom
ai/replay-bench

Conversation

@inada-s-ai
@inada-s-ai inada-s-ai Bot commented Nov 16, 2026
Copy link
Copy Markdown

Description of Changes

ZDXSV_REPLAY_BENCH=at:depth:reps (diagnostic): during replay playback, from frame at every frame is saved as a delta state; after each depth played frames the first of them is loaded and the frames rerun the way a GGPO rollback reruns them (same draw / VU1 skip flags, rerun keep, GgpoRunFrame), reps times. At the end it logs wall ms of a played frame, a rerun frame, a save and a load (mean, median, p10, p90, max). New file pcsx2/Zdxsv/ReplayBench.cpp; three one-line calls in the replay code; off = no change.

Rationale behind Changes

A repeatable benchmark of the GGPO frame costs on real battle frames (a replay), as the base for tuning game speed in GGPO battles (#606).

Suggested Testing Steps

Verified on windows-mini (private rig): built (MSBuild Release), PCSX2_ENV=ZDXSV_REPLAY_BENCH=6000:8:200 MAXS=90 rplay.py on a 4-player replay: replay bench done, 200 of 200 rollbacks, all four parts logged; its state hash differs lines equal those of the same replay on the build before this one without the knob (the reruns reproduce the played frames). Not run: Linux/macOS builds (CI), windowed renderer timing.

Did you use AI to help find, test, or implement this issue or feature?

Yes: written and tested by Claude Code.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@inada-s-ai
inada-s-ai Bot enabled auto-merge November 16, 2026 09:31
@inada-s-ai
inada-s-ai Bot merged commit 121225a into zdxsv-master Nov 16, 2026
1 check passed
@inada-s-ai
inada-s-ai Bot deleted the ai/replay-bench branch November 16, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

0