From e4cbcec2f10b1d03626eb0c79971eb6272fd6e87 Mon Sep 17 00:00:00 2001 From: crueter Date: Tue, 30 Dec 2025 18:03:09 +0100 Subject: [settings, frontend] Reorganize graphics/CPU settings, saner defaults (#3233) - Fast GPU now defaults to 256, removed 128 since it's useless. - Completely reorganized graphics and CPU settings on both platforms. Also got rid of Eden's Veil - Merged some "use ..." settings that weren't really necessary. - Changed ExtendedDynamicState to be a combo box Signed-off-by: crueter Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3233 Reviewed-by: MaranBr Reviewed-by: DraVee Reviewed-by: Lizzie --- src/core/core_timing.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/core/core_timing.cpp') diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index c53f9b3e44..3c847c8359 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -195,19 +195,20 @@ u64 CoreTiming::GetClockTicks() const { u64 fres; if (is_multicore) [[likely]] { fres = clock->GetCNTPCT(); - } else { - fres = Common::WallClock::CPUTickToCNTPCT(cpu_ticks); - } + } else { + fres = Common::WallClock::CPUTickToCNTPCT(cpu_ticks); + } + + const auto overclock = Settings::values.fast_cpu_time.GetValue(); - if (Settings::values.use_fast_cpu_time) { - fres = (u64) ((double) fres - * (1.7 + 0.3 * (u32) Settings::values.fast_cpu_time.GetValue())); + if (overclock != Settings::CpuClock::Off) { + fres = (u64) ((double) fres * (1.7 + 0.3 * u32(overclock))); } 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); + const auto ticks = double(fres); + const auto speed_limit = double(Settings::values.speed_limit.GetValue())*0.01; + return u64(ticks/speed_limit); } else { return fres; } -- cgit v1.2.3