diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-04-23 04:55:03 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-08 03:44:42 +0200 |
commit | dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b (patch) | |
tree | 82538e7a48fa6fb6a9a5d51aef925586195c21ed /src/common/x64/cpu_detect.cpp | |
parent | Merge pull request #10650 from qurious-pixel/android_tv (diff) | |
download | yuzu-dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b.tar yuzu-dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b.tar.gz yuzu-dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b.tar.bz2 yuzu-dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b.tar.lz yuzu-dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b.tar.xz yuzu-dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b.tar.zst yuzu-dd12dd4c67dd4bc6e7a7d071b925afc38e687f8b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/x64/cpu_detect.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp index 72ed6e96c..c998b1197 100644 --- a/src/common/x64/cpu_detect.cpp +++ b/src/common/x64/cpu_detect.cpp @@ -14,6 +14,7 @@ #include "common/common_types.h" #include "common/logging/log.h" #include "common/x64/cpu_detect.h" +#include "common/x64/rdtsc.h" #ifdef _WIN32 #include <windows.h> @@ -187,6 +188,8 @@ static CPUCaps Detect() { caps.tsc_frequency = static_cast<u64>(caps.crystal_frequency) * caps.tsc_crystal_ratio_numerator / caps.tsc_crystal_ratio_denominator; + } else { + caps.tsc_frequency = X64::EstimateRDTSCFrequency(); } } |