Default stream resolution based on eye tracking

This commit is contained in:
Patrick Nicolas
2025-12-10 14:32:44 +01:00
parent db345c832d
commit 9b4a26b5a8
4 changed files with 28 additions and 7 deletions
+5 -2
View File
@@ -222,8 +222,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
info.render_eye_height = view.recommendedImageRectHeight * config.resolution_scale;
}
info.stream_eye_width = info.render_eye_width * config.stream_scale;
info.stream_eye_height = info.render_eye_height * config.stream_scale;
{
auto scale = config.get_stream_scale();
info.stream_eye_width = info.render_eye_width * scale;
info.stream_eye_height = info.render_eye_height * scale;
}
if (self->instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
{