[d3d11] Hook up platform-specific clock

See 89dfa2bc22
This commit is contained in:
Joshua Ashton 2019-11-26 00:46:39 +00:00 committed by Philip Rebohle
parent c39c3e8dcc
commit 7e3142b2ed
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -1,6 +1,6 @@
#pragma once
#include <chrono>
#include "../util/util_time.h"
#include "d3d11_context.h"
#include "d3d11_state_object.h"
@ -116,8 +116,8 @@ namespace dxvk {
std::atomic<uint32_t> 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<D3D11DeviceContextState> m_stateObject;