Add high performance encoding option (for amd) in settings page. Requires gsr version >= 5.3.4

This commit is contained in:
dec05eba
2025-03-30 17:16:21 +02:00
parent 2b63fa048c
commit 3060e3ee00
9 changed files with 41 additions and 11 deletions

View File

@@ -60,6 +60,7 @@ namespace gsr {
std::string joystick_hotkeys_enable_option = "disable_hotkeys";
std::string tint_color;
ConfigHotkey show_hide_hotkey;
bool high_performance_encoding = false;
};
struct YoutubeStreamConfig {

View File

@@ -116,6 +116,8 @@ namespace gsr {
bool update_compositor_texture(const Monitor &monitor);
void force_window_on_top();
void add_common_gpu_screen_recorder_args(std::vector<const char*> &args, const RecordOptions &record_options, const std::vector<std::string> &audio_tracks, const std::string &video_bitrate, const char *region, const std::string &audio_devices_merged, char *region_str, int region_str_size, const RegionSelector &region_selector);
private:
using KeyBindingCallback = std::function<void()>;
struct KeyBinding {

View File

@@ -17,6 +17,7 @@ namespace gsr {
class Button;
class List;
class CustomRendererWidget;
class CheckBox;
enum ConfigureHotkeyType {
NONE,
@@ -63,6 +64,7 @@ namespace gsr {
std::unique_ptr<List> create_hotkey_control_buttons();
std::unique_ptr<Subsection> create_keyboard_hotkey_subsection(ScrollablePage *parent_page);
std::unique_ptr<Subsection> create_controller_hotkey_subsection(ScrollablePage *parent_page);
std::unique_ptr<CheckBox> create_high_performance_encoding_option();
std::unique_ptr<Button> create_exit_program_button();
std::unique_ptr<Button> create_go_back_to_old_ui_button();
std::unique_ptr<Subsection> create_application_options_subsection(ScrollablePage *parent_page);
@@ -95,6 +97,7 @@ namespace gsr {
Button *take_screenshot_button_ptr = nullptr;
Button *take_screenshot_region_button_ptr = nullptr;
Button *show_hide_button_ptr = nullptr;
CheckBox *high_performance_encoding_checkbox_ptr = nullptr;
ConfigHotkey configure_config_hotkey;
ConfigureHotkeyType configure_hotkey_type = ConfigureHotkeyType::NONE;