Skip to content

Commit 526a735

Browse files
committed
[dxvk] Log reported display refresh rate for present timing purposes
1 parent a02f6df commit 526a735

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/dxvk/dxvk_presenter.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,15 @@ namespace dxvk {
14151415

14161416
if (!info.refreshIntervalNs && !info.isVariableRefresh)
14171417
info.refreshIntervalNs = swapchainTiming.refreshInterval;
1418+
1419+
if (info.isVariableRefresh) {
1420+
// Note that VRR isn't reported correctly in some environments.
1421+
Logger::info("Presenter: Reported refresh rate: Variable");
1422+
} else {
1423+
auto refreshRateToLog = 10000000000ull / info.refreshIntervalNs;
1424+
Logger::info(str::format("Presenter: Reported refresh rate: ",
1425+
(refreshRateToLog / 10u), ".", (refreshRateToLog % 10u), " Hz "));
1426+
}
14181427
}
14191428

14201429

0 commit comments

Comments
 (0)