mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Hook up platform-specific clock
See 89dfa2bc22577c758cb8badd34e4f177192a6eff
This commit is contained in:
parent
c39c3e8dcc
commit
7e3142b2ed
@ -166,7 +166,7 @@ namespace dxvk {
|
|||||||
FlushCsChunk();
|
FlushCsChunk();
|
||||||
|
|
||||||
// Reset flush timer used for implicit flushes
|
// 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;
|
m_csIsBusy = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -633,7 +633,7 @@ namespace dxvk {
|
|||||||
uint32_t pending = m_device->pendingSubmissions();
|
uint32_t pending = m_device->pendingSubmissions();
|
||||||
|
|
||||||
if (StrongHint || pending <= MaxPendingSubmits) {
|
if (StrongHint || pending <= MaxPendingSubmits) {
|
||||||
auto now = std::chrono::high_resolution_clock::now();
|
auto now = dxvk::high_resolution_clock::now();
|
||||||
|
|
||||||
uint32_t delay = MinFlushIntervalUs
|
uint32_t delay = MinFlushIntervalUs
|
||||||
+ IncFlushIntervalUs * pending;
|
+ IncFlushIntervalUs * pending;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <chrono>
|
#include "../util/util_time.h"
|
||||||
|
|
||||||
#include "d3d11_context.h"
|
#include "d3d11_context.h"
|
||||||
#include "d3d11_state_object.h"
|
#include "d3d11_state_object.h"
|
||||||
@ -116,8 +116,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
std::atomic<uint32_t> m_refCount = { 0 };
|
std::atomic<uint32_t> m_refCount = { 0 };
|
||||||
|
|
||||||
std::chrono::high_resolution_clock::time_point m_lastFlush
|
dxvk::high_resolution_clock::time_point m_lastFlush
|
||||||
= std::chrono::high_resolution_clock::now();
|
= dxvk::high_resolution_clock::now();
|
||||||
|
|
||||||
Com<D3D11DeviceContextState> m_stateObject;
|
Com<D3D11DeviceContextState> m_stateObject;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user