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/video_core/gpu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/video_core/gpu.cpp') diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index c816f47fec..7c34005a12 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -200,7 +200,10 @@ struct GPU::Impl { u64 gpu_tick = system.CoreTiming().GetGPUTicks(); if (Settings::values.use_fast_gpu_time.GetValue()) { - gpu_tick /= 256; + gpu_tick /= (u64) (128 + * std::pow(2, + static_cast( + Settings::values.fast_gpu_time.GetValue()))); } return gpu_tick; -- cgit v1.2.3