From 059d89441e38fd4b2b72f4bdbc34d02aa765c709 Mon Sep 17 00:00:00 2001 From: Gamer64 Date: Fri, 27 Jun 2025 13:45:54 +0000 Subject: [core, frontend] Add Custom CPU Ticks option (#217) Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com> Co-authored-by: crueter Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/217 --- src/core/core_timing.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/core_timing.cpp') diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index a8ffdb3cb7..3bd0d57e4d 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -172,7 +172,9 @@ void CoreTiming::UnscheduleEvent(const std::shared_ptr& event_type, } void CoreTiming::AddTicks(u64 ticks_to_add) { - cpu_ticks += ticks_to_add; + cpu_ticks = Settings::values.use_custom_cpu_ticks.GetValue() + ? Settings::values.cpu_ticks.GetValue() + : cpu_ticks + ticks_to_add; downcount -= static_cast(cpu_ticks); } -- cgit v1.2.3