diff options
| author | 2020-05-29 17:37:37 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:36:21 -0400 | |
| commit | 7fd7d05838b88e9dd63a7329e29ea355669a5f18 (patch) | |
| tree | 083e938c7a3a82be30050fb990fe2d62c4aeee57 /src/common/wall_clock.cpp | |
| parent | Services/NvFlinger: Do vSync in a sepparate thread on Multicore. (diff) | |
| download | yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar.gz yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar.xz yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.zip | |
Common/Kernel: Corrections and small bug fixing.
Diffstat (limited to 'src/common/wall_clock.cpp')
| -rw-r--r-- | src/common/wall_clock.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp index a46db6bbf..3afbdb898 100644 --- a/src/common/wall_clock.cpp +++ b/src/common/wall_clock.cpp | |||
| @@ -68,12 +68,7 @@ std::unique_ptr<WallClock> CreateBestMatchingClock(u32 emulated_cpu_frequency, | |||
| 68 | const auto& caps = GetCPUCaps(); | 68 | const auto& caps = GetCPUCaps(); |
| 69 | u64 rtsc_frequency = 0; | 69 | u64 rtsc_frequency = 0; |
| 70 | if (caps.invariant_tsc) { | 70 | if (caps.invariant_tsc) { |
| 71 | if (caps.base_frequency != 0) { | 71 | rtsc_frequency = EstimateRDTSCFrequency(); |
| 72 | rtsc_frequency = static_cast<u64>(caps.base_frequency) * 1000000U; | ||
| 73 | } | ||
| 74 | if (rtsc_frequency == 0) { | ||
| 75 | rtsc_frequency = EstimateRDTSCFrequency(); | ||
| 76 | } | ||
| 77 | } | 72 | } |
| 78 | if (rtsc_frequency == 0) { | 73 | if (rtsc_frequency == 0) { |
| 79 | return std::make_unique<StandardWallClock>(emulated_cpu_frequency, | 74 | return std::make_unique<StandardWallClock>(emulated_cpu_frequency, |