summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-06-04 19:52:42 -0400
committerGravatar Lioncash2019-06-04 20:31:24 -0400
commit42f5fd0ab32b117901d0cae228103811719606ff (patch)
tree66fed7f7c35ba2448006f1393a9b868ed29632d5 /src/video_core/gpu_thread.cpp
parentcore/core_timing_utils: Simplify overload set (diff)
downloadyuzu-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.cpp2
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
76void ThreadManager::SubmitList(Tegra::CommandList&& entries) { 76void 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