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>
This commit is contained in:
swurl 2025-05-29 08:19:51 +00:00 committed by crueter
parent ed47533be8
commit b78089e978
14 changed files with 330 additions and 88 deletions

View file

@ -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;