Control automatic refresh rate adjustment
If an OpenXR application requests a specific frame rate, use that one. In order to revert to automatic adjustment, an application shall request a 0 refresh rate (no preference).
This commit is contained in:
@@ -595,7 +595,8 @@ void wivrn_session::run(std::stop_token stop)
|
||||
{
|
||||
offset_est.request_sample(*connection);
|
||||
tracking_control.send(*connection);
|
||||
refresh.adjust(*connection);
|
||||
if (comp_target->requested_refresh_rate == 0)
|
||||
refresh.adjust(*connection);
|
||||
connection->poll(*this, 20);
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
|
||||
Reference in New Issue
Block a user