mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 10:50:15 -10:00
core_load_check_iterate() ran every frame, a call into another translation unit even in a build whose check is dormant (no signing key compiled in) or with nothing parked. A park now raises a frame_work bit, RUNLOOP_WORK_CORE_PARK, and its drop lowers it, so the frame loop skips the call as it does Discord, cheats and the camera when they are idle. Every way a park ends goes through core_load_park_drop(), so the bit can't outlive it. The core_load_check harness now polls only under the bit, as the frame loop does, and checks it rises with a park and falls once the park has run.