diff options
| author | crueter <crueter@eden-emu.dev> | 2025-12-30 18:03:09 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-12-30 18:03:09 +0100 |
| commit | e4cbcec2f10b1d03626eb0c79971eb6272fd6e87 (patch) | |
| tree | 5514b04206e0ac76ebde0132b89473b2b9700606 /src/core/core_timing.cpp | |
| parent | 006f97f207acd7d5fb5c32318f059c0929252511 (diff) | |
[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 <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3233
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: DraVee <dravee@eden-emu.dev>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/core/core_timing.cpp')
| -rw-r--r-- | src/core/core_timing.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
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<double>(fres); - const double speed_limit = static_cast<double>(Settings::values.speed_limit.GetValue())*0.01; - return static_cast<u64>(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; } |
