diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-12-02 14:20:43 -0500 |
|---|---|---|
| committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-12-02 14:20:43 -0500 |
| commit | 2b9afa4d56a4a990587551e71ba7524f2db5da8f (patch) | |
| tree | cff2c5d404b77e93e875fbf40cf78ea6d30d32b0 /src/video_core/shader_notify.cpp | |
| parent | 9e6baeeea2b7609dafc105aeb964558d29162d8b (diff) | |
general: Replace high_resolution_clock with steady_clock
On some OSes, high_resolution_clock is an alias to system_clock and is not monotonic in nature. Replace this with steady_clock.
Diffstat (limited to 'src/video_core/shader_notify.cpp')
| -rw-r--r-- | src/video_core/shader_notify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader_notify.cpp b/src/video_core/shader_notify.cpp index dc6995b460..bcaf5f5754 100644 --- a/src/video_core/shader_notify.cpp +++ b/src/video_core/shader_notify.cpp @@ -18,7 +18,7 @@ int ShaderNotify::ShadersBuilding() noexcept { const int now_complete = num_complete.load(std::memory_order::relaxed); const int now_building = num_building.load(std::memory_order::relaxed); if (now_complete == now_building) { - const auto now = std::chrono::high_resolution_clock::now(); + const auto now = std::chrono::steady_clock::now(); if (completed && num_complete == num_when_completed) { if (now - complete_time > TIME_TO_STOP_REPORTING) { report_base = now_complete; |
