Consider adding detection of polling loops and yield suggestions during recompilation
Author: gcsmithCreated Jan 3, 2026Updated Jan 3, 2026
Due to lack of thread preemption, some games require explicit yield_to_self() calls to be patched into polling loops to avoid hitching (e.g. uvaSeqStop() in Pilotwings) or infinite loops.
It would probably be difficult to implement this automatically in a way that would be 100% reliable and without negative performance implications, but there could be value in adding a knob to the *.toml file that enables some limited detection of stalling loops and print suggested locations for yield calls. This would be something developers could enable during initial bring-up of a new game, then disable past that point.
Source: N64Recomp/N64Recomp