Commit 48eefb92 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[d3d9] Hook up platform-specific clock

See 89dfa2b

Closes #459 and #455
parent cdd77a22
......@@ -4522,7 +4522,7 @@ namespace dxvk {
uint32_t pending = m_dxvkDevice->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;
......@@ -4828,7 +4828,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;
}
}
......
......@@ -863,8 +863,8 @@ namespace dxvk {
Rc<DxvkDataBuffer> m_updateBuffer;
DxvkCsChunkPool m_csChunkPool;
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();
DxvkCsThread m_csThread;
bool m_csIsBusy = false;
......
......@@ -181,7 +181,7 @@ namespace dxvk {
uint32_t scanLineCount = mode.Height + vBlankLineCount;
auto nowUs = std::chrono::time_point_cast<std::chrono::microseconds>(
std::chrono::high_resolution_clock::now())
dxvk::high_resolution_clock::now())
.time_since_epoch();
auto frametimeUs = std::chrono::microseconds(1000000u / mode.RefreshRate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment