mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-27 18:52:11 -04:00
bbdf7bb01f
overlay_autocapture_tick()'s pressure-sample and cooldown gates counted only emulated vblanks (120 / 300 frames, ~2 s / ~5 s at full speed). The situation autocapture exists to fix — a fresh RAM image with no native coverage, running in the interpreter — is exactly the situation where vblanks stop arriving, so the recovery loop was throttled by the very stall it should end: at an observed 0.26 fps, one pressure sample every ~8 minutes of wall clock and one capture fire every ~19. Give both gates host-time twins at their 60 Hz equivalents (AUTOCAP_CHECK_MS 2000, AUTOCAP_COOLDOWN_MS 5000) and open each gate on whichever budget expires first. At full speed the budgets coincide, so healthy-title cadence is unchanged; behavior differs only while the guest runs slower than real time. The futility backoff multiplies the host cooldown exactly as it multiplies the frame cooldown.