[dxgi] Use high_resolution_clock get_counter instead of QPC for SyncQPCTime

Abstracts this across platforms
This commit is contained in:
Joshua Ashton 2022-08-21 20:21:08 +00:00 committed by Philip Rebohle
parent 9610e29a65
commit a4261ddd14
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ namespace dxvk {
pStats->PresentCount = m_presentCount;
pStats->PresentRefreshCount = 0;
pStats->SyncRefreshCount = 0;
QueryPerformanceCounter(&pStats->SyncQPCTime);
pStats->SyncQPCTime.QuadPart = dxvk::high_resolution_clock::get_counter();
pStats->SyncGPUTime.QuadPart = 0;
return S_OK;
}