From 5c3ff17075314e5621ddcb921b5d48b9e75a057f Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 27 May 2025 18:59:57 +0300 Subject: [PATCH] Make non-JIT event skip count adjustable and reduced it slightly. --- events.cpp | 2 -- od-win32/win32.cpp | 9 +++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/events.cpp b/events.cpp index a9e4cc66..83bb4f33 100644 --- a/events.cpp +++ b/events.cpp @@ -25,8 +25,6 @@ #include "audio.h" #include "cia.h" -static const int pissoff_nojit_value = 256 * CYCLE_UNIT; - extern uae_u8 agnus_hpos; int custom_fastmode; extern int linear_hpos; diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 338ebdc0..9d11f4ae 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -132,6 +132,7 @@ int log_vsync, debug_vsync_min_delay, debug_vsync_forced_delay; static int log_winmouse; int uaelib_debug; int pissoff_value = 15000 * CYCLE_UNIT; +int pissoff_nojit_value = 160 * CYCLE_UNIT; unsigned int fpucontrol; int extraframewait, extraframewait2; int busywait; @@ -7137,8 +7138,12 @@ static int parseargs(const TCHAR *argx, const TCHAR *np, const TCHAR *np2) minidumpmode = (MINIDUMP_TYPE)getval (np); return 2; } - if (!_tcscmp (arg, _T("jitevent"))) { - pissoff_value = getval (np) * CYCLE_UNIT; + if (!_tcscmp(arg, _T("jitevent"))) { + pissoff_value = getval(np) * CYCLE_UNIT; + return 2; + } + if (!_tcscmp(arg, _T("cpuevent"))) { + pissoff_nojit_value = getval(np) * CYCLE_UNIT; return 2; } if (!_tcscmp (arg, _T("inputrecorddebug"))) { -- 2.47.3