]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fastest possible CPU immediate blitter speedup
authorToni Wilen <twilen@winuae.net>
Sun, 23 Feb 2025 12:48:50 +0000 (14:48 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 23 Feb 2025 12:48:50 +0000 (14:48 +0200)
custom.cpp
events.cpp

index b2aee33ed572a76b540ee40baad313a523337684..41b06419b93a1408a20a59ce4b472fbe4600d256 100644 (file)
@@ -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) {
index a978c0a031073442947b347784d3db92a2c5a638..6ced8f54edde3153c2e1d0e6ac490ff1f860fabf 100644 (file)
@@ -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;
                }
        }