launcher: add GPU selection

This commit is contained in:
nmzik
2026-09-07 15:12:35 +04:00
parent b3b3aeef73
commit e4c10de8b6
6 changed files with 58 additions and 3 deletions
+4
View File
@@ -94,6 +94,7 @@ public:
QString user_name = "Kyty";
int user_id = Config::DEFAULT_USER_ID;
PresentMode present_mode = PresentMode::Fifo;
int gpu_index = -1;
bool fullscreen_enabled = false;
bool readback_linear_images = false;
int vblank_frequency = 60;
@@ -121,6 +122,7 @@ public:
user_name = other.user_name;
user_id = other.user_id;
present_mode = other.present_mode;
gpu_index = other.gpu_index;
fullscreen_enabled = other.fullscreen_enabled;
readback_linear_images = other.readback_linear_images;
vblank_frequency = other.vblank_frequency;
@@ -165,6 +167,7 @@ public:
KYTY_CFG_SET(user_name);
KYTY_CFG_SET(user_id);
KYTY_CFG_SET(present_mode);
KYTY_CFG_SET(gpu_index);
KYTY_CFG_SET(fullscreen_enabled);
KYTY_CFG_SET(readback_linear_images);
KYTY_CFG_SET(vblank_frequency);
@@ -200,6 +203,7 @@ public:
? saved_user_id
: Config::DEFAULT_USER_ID;
KYTY_CFG_GET(present_mode);
gpu_index = s->value("gpu_index", -1).toInt();
if (EnumToText(present_mode).isEmpty()) {
present_mode = PresentMode::Fifo;
}