Merge pull request #9889 from Morph1984/time-is-ticking

core_timing: Reduce CPU usage on Windows
This commit is contained in:
liamwhite 2023-03-07 10:54:13 -05:00 committed by GitHub
commit a7792e5ff8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 324 additions and 65 deletions

View file

@ -197,7 +197,7 @@ struct GPU::Impl {
constexpr u64 gpu_ticks_num = 384;
constexpr u64 gpu_ticks_den = 625;
u64 nanoseconds = system.CoreTiming().GetGlobalTimeNs().count();
u64 nanoseconds = system.CoreTiming().GetCPUTimeNs().count();
if (Settings::values.use_fast_gpu_time.GetValue()) {
nanoseconds /= 256;
}