diff options
| author | 2021-12-03 16:08:20 -0800 | |
|---|---|---|
| committer | 2021-12-03 16:08:20 -0800 | |
| commit | a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89 (patch) | |
| tree | 8feb52b4bd0afa965b0865ef00e5f8739b07d3df /src/video_core | |
| parent | Merge pull request #7490 from Morph1984/stub-album-save-screenshot (diff) | |
| parent | general: Replace high_resolution_clock with steady_clock (diff) | |
| download | yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar.gz yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar.xz yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.zip | |
Merge pull request #7489 from Morph1984/steady-clock
general: Replace high_resolution_clock with steady_clock
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/shader_notify.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/shader_notify.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader_notify.cpp b/src/video_core/shader_notify.cpp index dc6995b46..bcaf5f575 100644 --- a/src/video_core/shader_notify.cpp +++ b/src/video_core/shader_notify.cpp | |||
| @@ -18,7 +18,7 @@ int ShaderNotify::ShadersBuilding() noexcept { | |||
| 18 | const int now_complete = num_complete.load(std::memory_order::relaxed); | 18 | const int now_complete = num_complete.load(std::memory_order::relaxed); |
| 19 | const int now_building = num_building.load(std::memory_order::relaxed); | 19 | const int now_building = num_building.load(std::memory_order::relaxed); |
| 20 | if (now_complete == now_building) { | 20 | if (now_complete == now_building) { |
| 21 | const auto now = std::chrono::high_resolution_clock::now(); | 21 | const auto now = std::chrono::steady_clock::now(); |
| 22 | if (completed && num_complete == num_when_completed) { | 22 | if (completed && num_complete == num_when_completed) { |
| 23 | if (now - complete_time > TIME_TO_STOP_REPORTING) { | 23 | if (now - complete_time > TIME_TO_STOP_REPORTING) { |
| 24 | report_base = now_complete; | 24 | report_base = now_complete; |
diff --git a/src/video_core/shader_notify.h b/src/video_core/shader_notify.h index ad363bfb5..4d8d52071 100644 --- a/src/video_core/shader_notify.h +++ b/src/video_core/shader_notify.h | |||
| @@ -28,6 +28,6 @@ private: | |||
| 28 | 28 | ||
| 29 | bool completed{}; | 29 | bool completed{}; |
| 30 | int num_when_completed{}; | 30 | int num_when_completed{}; |
| 31 | std::chrono::high_resolution_clock::time_point complete_time; | 31 | std::chrono::steady_clock::time_point complete_time; |
| 32 | }; | 32 | }; |
| 33 | } // namespace VideoCore | 33 | } // namespace VideoCore |