Consolidate A/V sync debug logging and enhance real-device test workflow#79
Merged
Merged
Conversation
Co-authored-by: chrisgleissner <3969147+chrisgleissner@users.noreply.github.com>
…cross-platform documentation Co-authored-by: chrisgleissner <3969147+chrisgleissner@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Address review comments for A/V sync improvement
Consolidate A/V sync debug logging and enhance real-device test workflow
Jan 8, 2026
chrisgleissner
approved these changes
Jan 8, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR consolidates A/V sync debug logging in the C code and enhances the real-device test workflow with new command-line options for more flexible testing scenarios.
Key changes:
- Unified A/V sync logging in
src/c64-video.cfrom 3 log statements (1 INFO, 2 DEBUG) to a single DEBUG-level log containing all correlation data - Added
--obs-onlyflag to skip PRG build/upload when the test program is already running on the C64 Ultimate device - Added
--no-mp4-analysisflag to skip MP4 video analysis for faster iteration during CSV/log-only workflows - Comprehensive documentation overhaul in
doc/testing/av-sync-e2e-for-real-device.mdcovering Linux, macOS, Windows (WSL2, Git Bash), with prerequisites, installation steps, and troubleshooting
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/c64-video.c | Consolidated A/V sync logging from 3 statements to 1 unified DEBUG log with all technical details; wall clock calculation moved outside conditional for efficiency |
| tests/e2e/real-device-av-sync.sh | Added --obs-only and --no-mp4-analysis flags; updated trap handling to only reset device when PRG was actually run; expanded help text with new examples |
| tests/e2e/real_device_av_sync.py | Added --no-mp4-analysis argument and conditional logic to skip MP4 analysis when flag is set |
| doc/testing/av-sync-e2e-for-real-device.md | Complete rewrite as comprehensive guide covering all platforms, installation steps, usage examples, and troubleshooting |
| doc/c64u-stream-spec.md | Simplified cropping documentation by removing redundant paragraph |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses review feedback on #77 to improve A/V sync instrumentation clarity and real-device testing usability.
Changes
A/V Sync Logging Consolidation (src/c64-video.c)
Real-Device Test Script Enhancements (tests/e2e/real-device-av-sync.sh)
--obs-only: Skip PRG build/upload when av-sync-auto.prg already running on C64U--no-mp4-analysis: Disable MP4 video analysis (CSV/log analysis only) for faster iterationDocumentation Overhaul (doc/testing/av-sync-e2e-for-real-device.md)
Documentation Cleanup (doc/c64u-stream-spec.md)
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.