Remove bitrate setting with the thumbstick
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -55,7 +55,6 @@ struct settings_context
|
||||
|
||||
// in-stream hooks, empty in the lobby
|
||||
std::function<void()> on_streaming_changed; // refresh rate / spacewarp / bitrate
|
||||
std::function<void()> enter_bitrate_adjust; // thumbstick bitrate sub-mode
|
||||
std::function<void()> enter_foveation_adjust; // thumbstick foveation sub-mode
|
||||
std::function<void()> on_foveation_override_changed; // foveation override toggled
|
||||
};
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <type_traits>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
#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,
|
||||
|
||||
Reference in New Issue
Block a user