diff options
| author | 2019-06-04 19:52:42 -0400 | |
|---|---|---|
| committer | 2019-06-04 20:31:24 -0400 | |
| commit | 42f5fd0ab32b117901d0cae228103811719606ff (patch) | |
| tree | 66fed7f7c35ba2448006f1393a9b868ed29632d5 /src/video_core/gpu_thread.cpp | |
| parent | core/core_timing_utils: Simplify overload set (diff) | |
| download | yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar.gz yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar.xz yuzu-42f5fd0ab32b117901d0cae228103811719606ff.zip | |
core/core_timing_util: Use std::chrono types for specifying time units
Makes the interface more type-safe and consistent in terms of return
values.
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
| -rw-r--r-- | src/video_core/gpu_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index 1e2ff46b0..3f0939ec9 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp | |||
| @@ -75,7 +75,7 @@ void ThreadManager::StartThread(VideoCore::RendererBase& renderer, Tegra::DmaPus | |||
| 75 | 75 | ||
| 76 | void ThreadManager::SubmitList(Tegra::CommandList&& entries) { | 76 | void ThreadManager::SubmitList(Tegra::CommandList&& entries) { |
| 77 | const u64 fence{PushCommand(SubmitListCommand(std::move(entries)))}; | 77 | const u64 fence{PushCommand(SubmitListCommand(std::move(entries)))}; |
| 78 | const s64 synchronization_ticks{Core::Timing::usToCycles(9000)}; | 78 | const s64 synchronization_ticks{Core::Timing::usToCycles(std::chrono::microseconds{9000})}; |
| 79 | system.CoreTiming().ScheduleEvent(synchronization_ticks, synchronization_event, fence); | 79 | system.CoreTiming().ScheduleEvent(synchronization_ticks, synchronization_event, fence); |
| 80 | } | 80 | } |
| 81 | 81 | ||