mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-12 14:47:49 +00:00
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:
parent
ed47533be8
commit
b78089e978
14 changed files with 330 additions and 88 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue