mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
af0e6a0472
[video] render_thread (default false; PSX_RENDER_THREAD=0/1 overrides, PSX_RENDER_THREAD_FRAMES bounds frames in flight, default 2) starts the OpenGL render thread at the first vblank, after the context and every startup GL call exist. Each vblank then closes a frame right after its present and before wall-clock pacing, so the render thread draws while the guest waits. Netplay, frame interpolation, Vulkan and software keep the synchronous path. TCP: render_thread reports records, frames produced/consumed, presents and stale presents skipped, sync points with their recent reasons, backpressure and render busy time. Display-ring and present-image-ring readers sync first (the render thread fills them). config_loader is a BIOS emitter input: OpenBIOS fingerprint regenerated (tools/regen_bios.sh --config bios/OpenBIOS.toml; the C is unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>