Add logs for refresh rate change

This commit is contained in:
Patrick Nicolas
2026-06-13 23:05:52 +02:00
parent c485bd10d3
commit 43395e6e40
5 changed files with 6 additions and 0 deletions
+1
View File
@@ -304,6 +304,7 @@ void xr::session::set_refresh_rate(float refresh_rate)
{
if (xrRequestDisplayRefreshRateFB)
{
spdlog::info("set refresh rate to {}Hz", refresh_rate);
if (auto res = xrRequestDisplayRefreshRateFB(id, refresh_rate); res != XR_SUCCESS)
spdlog::warn("Refresh rate change failed: {}", xr::to_string(res));
}