} else if (!currprefs.cpu_thread && !cpu_sleepmode && currprefs.m68k_speed < 0 && !currprefs.cpu_memory_cycle_exact) {
static int sleeps_remaining;
- if (0 && is_last_line ()) {
+ if (is_last_line()) {
sleeps_remaining = (165 - currprefs.cpu_idle) / 6;
if (sleeps_remaining < 0)
sleeps_remaining = 0;
} else {
static int linecounter;
/* end of scanline, run cpu emulation as long as we still have time */
+ int maxlc = 1;
vsyncmintime += vsynctimeperline;
linecounter++;
- int maxlc = 8;
events_reset_syncline();
if (vsync_isdone(NULL) <= 0 && !currprefs.turbo_emulation && (linecounter & (maxlc - 1)) == 0) {
if (vsyncmaxtime - vsyncmintime > 0) {
// runs CPU emulation with chipset stopped
// when there is free time to do so.
if (event_check_vsync()) {
- syncline_cnt = 16;
+ syncline_cnt = 8;
return;
}
}