summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-31 15:11:11 +0200
committerGitHub <noreply@github.com>2023-07-31 15:11:11 +0200
commit1ed6e3e51df9149f4754f41f005844932f3ce63f (patch)
tree864221fdc0adeb6bb0e33e51d671ac9597cd0f2e /src
parentMerge pull request #11186 from lat9nq/tz-gen-once (diff)
parentwall_clock: Increase precision requirements (diff)
downloadyuzu-1ed6e3e51df9149f4754f41f005844932f3ce63f.tar
yuzu-1ed6e3e51df9149f4754f41f005844932f3ce63f.tar.gz
yuzu-1ed6e3e51df9149f4754f41f005844932f3ce63f.tar.bz2
yuzu-1ed6e3e51df9149f4754f41f005844932f3ce63f.tar.lz
yuzu-1ed6e3e51df9149f4754f41f005844932f3ce63f.tar.xz
yuzu-1ed6e3e51df9149f4754f41f005844932f3ce63f.tar.zst
yuzu-1ed6e3e51df9149f4754f41f005844932f3ce63f.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/wall_clock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp
index dc0dcbd68..71e15ab4c 100644
--- a/src/common/wall_clock.cpp
+++ b/src/common/wall_clock.cpp
@@ -56,12 +56,12 @@ std::unique_ptr<WallClock> CreateOptimalClock() {
#ifdef ARCHITECTURE_x86_64
const auto& caps = GetCPUCaps();
- if (caps.invariant_tsc && caps.tsc_frequency >= WallClock::GPUTickFreq) {
+ if (caps.invariant_tsc && caps.tsc_frequency >= std::nano::den) {
return std::make_unique<X64::NativeClock>(caps.tsc_frequency);
} else {
// Fallback to StandardWallClock if the hardware TSC
// - Is not invariant
- // - Is not more precise than GPUTickFreq
+ // - Is not more precise than 1 GHz (1ns resolution)
return std::make_unique<StandardWallClock>();
}
#else