diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-06 02:54:13 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-08 03:17:46 +0100 |
commit | d718eab351292e3c4d168738f9cd543044c335bc (patch) | |
tree | 1240c005bf4cedc026012c0e5b062134c26cb20b /src/common/x64 | |
parent | native_clock: Use RealTimeClock instead of SteadyClock (diff) | |
download | yuzu-d718eab351292e3c4d168738f9cd543044c335bc.tar yuzu-d718eab351292e3c4d168738f9cd543044c335bc.tar.gz yuzu-d718eab351292e3c4d168738f9cd543044c335bc.tar.bz2 yuzu-d718eab351292e3c4d168738f9cd543044c335bc.tar.lz yuzu-d718eab351292e3c4d168738f9cd543044c335bc.tar.xz yuzu-d718eab351292e3c4d168738f9cd543044c335bc.tar.zst yuzu-d718eab351292e3c4d168738f9cd543044c335bc.zip |
Diffstat (limited to 'src/common/x64')
-rw-r--r-- | src/common/x64/native_clock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/x64/native_clock.cpp b/src/common/x64/native_clock.cpp index 3f90343a5..76c66e7ee 100644 --- a/src/common/x64/native_clock.cpp +++ b/src/common/x64/native_clock.cpp @@ -72,13 +72,13 @@ NativeClock::NativeClock(u64 emulated_cpu_frequency_, u64 emulated_clock_frequen u64 rtsc_frequency_) : WallClock(emulated_cpu_frequency_, emulated_clock_frequency_, true), rtsc_frequency{ rtsc_frequency_} { - // Thread to re-adjust the RDTSC frequency after 30 seconds has elapsed. + // Thread to re-adjust the RDTSC frequency after 10 seconds has elapsed. time_sync_thread = std::jthread{[this](std::stop_token token) { // Get the current time. const auto start_time = Common::RealTimeClock::Now(); const u64 tsc_start = FencedRDTSC(); - // Wait for 30 seconds. - if (!Common::StoppableTimedWait(token, std::chrono::seconds{30})) { + // Wait for 10 seconds. + if (!Common::StoppableTimedWait(token, std::chrono::seconds{10})) { return; } const auto end_time = Common::RealTimeClock::Now(); |