From b78089e978331c113a0fcf0ce9e71f592d52a242 Mon Sep 17 00:00:00 2001 From: swurl Date: Thu, 29 May 2025 08:19:51 +0000 Subject: Fast CPU Time & Improved Fast GPU Time (#109) needs android setting Signed-off-by: swurl Co-authored-by: Aleksandr Popovich Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/109 Co-authored-by: swurl Co-committed-by: swurl --- src/core/core_timing.cpp | 7 ++++++- 1 file changed, 6 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 3d67ab9f5c..a8ffdb3cb7 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -192,13 +192,18 @@ u64 CoreTiming::GetClockTicks() const { fres = Common::WallClock::CPUTickToCNTPCT(cpu_ticks); } + if (Settings::values.use_fast_cpu_time) { + fres = (u64) ((double) fres + * (1.7 + 0.3 * (u32) Settings::values.fast_cpu_time.GetValue())); + } + if (Settings::values.sync_core_speed.GetValue()) { const double ticks = static_cast(fres); const double speed_limit = static_cast(Settings::values.speed_limit.GetValue())*0.01; return static_cast(ticks/speed_limit); } else { return fres; - } + } } u64 CoreTiming::GetGPUTicks() const { -- cgit v1.2.3