aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorswurl <swurl@swurl.xyz>2025-05-29 08:19:51 +0000
committercrueter <crueter@noreply.localhost>2025-05-29 08:19:51 +0000
commitb78089e978331c113a0fcf0ce9e71f592d52a242 (patch)
tree724a0f42c765a66b545cfef060586620dffef055 /src/video_core/gpu.cpp
parented47533be802b312c1fbc559190b3dfd07a462e5 (diff)
Fast CPU Time & Improved Fast GPU Time (#109)
needs android setting Signed-off-by: swurl <swurl@swurl.xyz> Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/109 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp5
1 files changed, 4 insertions, 1 deletions
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<u32>(
+ Settings::values.fast_gpu_time.GetValue())));
}
return gpu_tick;