From 3c56ff74031215a988c0fdee0a4c99c877bc75f5 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 26 Jul 2026 15:08:10 +0200 Subject: [PATCH] Remove bitrate setting with the thumbstick --- client/scenes/gui_settings.cpp | 13 ------------- client/scenes/gui_settings.h | 1 - client/scenes/stream.cpp | 2 -- client/scenes/stream_gui.cpp | 8 -------- common/wivrn_packets.h | 4 +--- 5 files changed, 1 insertion(+), 27 deletions(-) diff --git a/client/scenes/gui_settings.cpp b/client/scenes/gui_settings.cpp index 4b9ee2ba..4fa0b442 100644 --- a/client/scenes/gui_settings.cpp +++ b/client/scenes/gui_settings.cpp @@ -404,19 +404,6 @@ void settings_streaming(const settings_context & ctx) .default_int = 50, }); - // in-stream: thumbstick bitrate, easier than the slider in VR - if (ctx.in_game and ctx.enter_bitrate_adjust) - { - list.push_back({ - .id = "##bitrate_adjust", - .label = _("Adjust bitrate with thumbstick"), - .description = _("Use the right thumbstick to fine-tune the bitrate."), - .ui = ui_kind::button, - .button_label = _C("button label to adjust the bitrate", "Adjust"), - .on_click = [&ctx] { ctx.enter_bitrate_adjust(); }, - }); - } - // in-stream: steer where foveation focuses quality if (ctx.in_game) { diff --git a/client/scenes/gui_settings.h b/client/scenes/gui_settings.h index dda2a2a7..bfd865ed 100644 --- a/client/scenes/gui_settings.h +++ b/client/scenes/gui_settings.h @@ -55,7 +55,6 @@ struct settings_context // in-stream hooks, empty in the lobby std::function on_streaming_changed; // refresh rate / spacewarp / bitrate - std::function enter_bitrate_adjust; // thumbstick bitrate sub-mode std::function enter_foveation_adjust; // thumbstick foveation sub-mode std::function on_foveation_override_changed; // foveation override toggled }; diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 94283c66..6da6d3f8 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -802,7 +802,6 @@ bool scenes::stream::is_interactable(stream_tab tab) { case stream_tab::stats: case stream_tab::settings: - case stream_tab::bitrate_settings: case stream_tab::foveation_settings: case stream_tab::applications: case stream_tab::application_launcher: @@ -1025,7 +1024,6 @@ void scenes::stream::render(const XrFrameState & frame_state) switch (gui_status) { case stream_tab::hidden: - case stream_tab::bitrate_settings: case stream_tab::foveation_settings: case stream_tab::compact: case stream_tab::overlay_only: diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index ee302a02..18128b18 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -410,7 +410,6 @@ void scenes::stream::gui_settings(float) .in_game = true, .server_hid_forwarding = hid_forwarding_enabled(), .on_streaming_changed = [this] { send_settings_changed_packet(session, network_session.get(), application::get_config()); }, - .enter_bitrate_adjust = [this] { next_gui_status = stream_tab::bitrate_settings; }, .enter_foveation_adjust = [this] { next_gui_status = stream_tab::foveation_settings; }, .on_foveation_override_changed = [this] { const auto & config = application::get_config(); @@ -671,7 +670,6 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte switch (gui_status) { case stream_tab::hidden: - case stream_tab::bitrate_settings: case stream_tab::foveation_settings: case stream_tab::overlay_only: case stream_tab::compact: @@ -727,7 +725,6 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte glm::mat3 M = glm::mat3_cast(head_position->second); switch (gui_status) { - case stream_tab::bitrate_settings: case stream_tab::foveation_settings: imgui_ctx->layers()[0].orientation = head_position->second; imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0, override_foveation_distance * sin(override_foveation_pitch), -override_foveation_distance}; @@ -794,7 +791,6 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte break; case stream_tab::hidden: - case stream_tab::bitrate_settings: case stream_tab::foveation_settings: ImGui::SetNextWindowPos(viewport_size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f)); always_auto_resize = true; @@ -894,10 +890,6 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte ImGui::PopStyleVar(); break; - case stream_tab::bitrate_settings: - gui_bitrate_settings(predicted_display_period * 1.e-9f); - break; - case stream_tab::foveation_settings: gui_foveation_settings(predicted_display_period * 1.e-9f); break; diff --git a/common/wivrn_packets.h b/common/wivrn_packets.h index 6396914c..74a5b8c1 100644 --- a/common/wivrn_packets.h +++ b/common/wivrn_packets.h @@ -31,7 +31,6 @@ #include #include #include -#include #include #include "packed_quaternion.h" @@ -41,7 +40,7 @@ namespace wivrn { -static constexpr int protocol_revision = 2; +static constexpr int protocol_revision = 1; enum class device_id : uint8_t { @@ -209,7 +208,6 @@ enum class stream_tab : uint8_t compact, stats, settings, - bitrate_settings, foveation_settings, applications, application_launcher,