diff options
author | Marshall Mohror <mohror64@gmail.com> | 2022-07-06 19:42:01 +0200 |
---|---|---|
committer | Marshall Mohror <mohror64@gmail.com> | 2022-07-06 19:42:01 +0200 |
commit | b2ad4dd189135be9a87af86619d6f5854525f7fa (patch) | |
tree | d290710b8975e063db7c38ef497e46cfdc71301f /src/common/wall_clock.cpp | |
parent | Merge pull request #8486 from liushuyu/github-actions-verify (diff) | |
download | yuzu-b2ad4dd189135be9a87af86619d6f5854525f7fa.tar yuzu-b2ad4dd189135be9a87af86619d6f5854525f7fa.tar.gz yuzu-b2ad4dd189135be9a87af86619d6f5854525f7fa.tar.bz2 yuzu-b2ad4dd189135be9a87af86619d6f5854525f7fa.tar.lz yuzu-b2ad4dd189135be9a87af86619d6f5854525f7fa.tar.xz yuzu-b2ad4dd189135be9a87af86619d6f5854525f7fa.tar.zst yuzu-b2ad4dd189135be9a87af86619d6f5854525f7fa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/wall_clock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp index b4fb3a59f..ae07f2811 100644 --- a/src/common/wall_clock.cpp +++ b/src/common/wall_clock.cpp @@ -67,7 +67,7 @@ std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency, const auto& caps = GetCPUCaps(); u64 rtsc_frequency = 0; if (caps.invariant_tsc) { - rtsc_frequency = EstimateRDTSCFrequency(); + rtsc_frequency = caps.tsc_frequency ? caps.tsc_frequency : EstimateRDTSCFrequency(); } // Fallback to StandardWallClock if the hardware TSC does not have the precision greater than: |