mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
9abcff08a4
One frame behind is the normal pipelined state when the render thread is the slower side; skipping on it dropped nearly every present at 4K widescreen. rt_frames_ahead() counts the complete frames queued after the one being replayed; the backend skips only at two, where the emulation thread is at the in-flight bound waiting on the render thread. The unit test checks the count never exceeds the bound and that both cases occur under a slow consumer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>