mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2026-05-03 19:39:39 +02:00
Implement idle loop skipping. The framerate on SMA4 is NINE times faster this way!
This commit is contained in:
@@ -3275,6 +3275,8 @@ skip_instruction:
|
|||||||
|
|
||||||
/* End of Execute ARM instruction */
|
/* End of Execute ARM instruction */
|
||||||
cycles_remaining -= cycles_per_instruction;
|
cycles_remaining -= cycles_per_instruction;
|
||||||
|
|
||||||
|
if (pc == idle_loop_target_pc && cycles_remaining > 0) cycles_remaining = 0;
|
||||||
} while(cycles_remaining > 0);
|
} while(cycles_remaining > 0);
|
||||||
|
|
||||||
collapse_flags();
|
collapse_flags();
|
||||||
@@ -4242,6 +4244,8 @@ thumb_loop:
|
|||||||
|
|
||||||
/* End of Execute THUMB instruction */
|
/* End of Execute THUMB instruction */
|
||||||
cycles_remaining -= cycles_per_instruction;
|
cycles_remaining -= cycles_per_instruction;
|
||||||
|
|
||||||
|
if (pc == idle_loop_target_pc && cycles_remaining > 0) cycles_remaining = 0;
|
||||||
} while(cycles_remaining > 0);
|
} while(cycles_remaining > 0);
|
||||||
|
|
||||||
collapse_flags();
|
collapse_flags();
|
||||||
|
|||||||
Reference in New Issue
Block a user