From 230e102f36a7739bb6186e3b9c383c2d0e5a5ed8 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Fri, 8 Aug 2025 19:55:17 +0200 Subject: [PATCH] Only request the app list when the stream is stalled --- client/scenes/stream.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index aff2938d..aa33ba7b 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -315,15 +315,6 @@ std::shared_ptr scenes::stream::create(std::unique_ptrnetwork_session->send_control(from_headset::get_application_list{ - .language = info.language, - .country = info.country, - .variant = info.variant, - }); - } - { const auto & config = application::get_config(); self->override_foveation_enable = config.override_foveation_enable; @@ -770,7 +761,15 @@ void scenes::stream::render(const XrFrameState & frame_state) } if (state_ == state::stalled) + { + network_session->send_control(from_headset::get_application_list{ + .language = application::get_messages_info().language, + .country = application::get_messages_info().country, + .variant = application::get_messages_info().variant, + }); + application::pop_scene(); + } assert(swapchain); for (auto & i: decoders)