From 7e3142b2ed92735145cc3b23c6ab627d4710b00e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 26 Nov 2019 00:46:39 +0000 Subject: [PATCH] [d3d11] Hook up platform-specific clock See 89dfa2bc22577c758cb8badd34e4f177192a6eff --- src/d3d11/d3d11_context_imm.cpp | 4 ++-- src/d3d11/d3d11_context_imm.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/d3d11/d3d11_context_imm.cpp b/src/d3d11/d3d11_context_imm.cpp index 0d193798f..0b4d9efa8 100644 --- a/src/d3d11/d3d11_context_imm.cpp +++ b/src/d3d11/d3d11_context_imm.cpp @@ -166,7 +166,7 @@ namespace dxvk { FlushCsChunk(); // Reset flush timer used for implicit flushes - m_lastFlush = std::chrono::high_resolution_clock::now(); + m_lastFlush = dxvk::high_resolution_clock::now(); m_csIsBusy = false; } } @@ -633,7 +633,7 @@ namespace dxvk { uint32_t pending = m_device->pendingSubmissions(); if (StrongHint || pending <= MaxPendingSubmits) { - auto now = std::chrono::high_resolution_clock::now(); + auto now = dxvk::high_resolution_clock::now(); uint32_t delay = MinFlushIntervalUs + IncFlushIntervalUs * pending; diff --git a/src/d3d11/d3d11_context_imm.h b/src/d3d11/d3d11_context_imm.h index 7831cd55a..51c7d7a34 100644 --- a/src/d3d11/d3d11_context_imm.h +++ b/src/d3d11/d3d11_context_imm.h @@ -1,6 +1,6 @@ #pragma once -#include +#include "../util/util_time.h" #include "d3d11_context.h" #include "d3d11_state_object.h" @@ -116,8 +116,8 @@ namespace dxvk { std::atomic m_refCount = { 0 }; - std::chrono::high_resolution_clock::time_point m_lastFlush - = std::chrono::high_resolution_clock::now(); + dxvk::high_resolution_clock::time_point m_lastFlush + = dxvk::high_resolution_clock::now(); Com m_stateObject;