From: Toni Wilen Date: Sun, 23 Feb 2025 12:48:50 +0000 (+0200) Subject: Fastest possible CPU immediate blitter speedup X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=4a2eadc6ad05d36bd9c03a4fbb763fec2ceb1f10;p=francis%2Fwinuae.git Fastest possible CPU immediate blitter speedup --- diff --git a/custom.cpp b/custom.cpp index b2aee33e..41b06419 100644 --- a/custom.cpp +++ b/custom.cpp @@ -6098,7 +6098,7 @@ static void hsync_handler_post(bool onvsync) } 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; @@ -6127,9 +6127,9 @@ static void hsync_handler_post(bool onvsync) } 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) { diff --git a/events.cpp b/events.cpp index a978c0a0..6ced8f54 100644 --- a/events.cpp +++ b/events.cpp @@ -306,7 +306,7 @@ void do_cycles_slow(int cycles_to_add) // 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; } }