summaryrefslogtreecommitdiff
path: root/src/yuzu/main.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-05-28 21:46:02 +0000
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-06 01:54:44 -0400
commitfc0c4db20d4161984a960a689afa0a08a5a4b401 (patch)
tree9271e436b5bbb08ea4d642a44aa50f788b6789e8 /src/yuzu/main.h
parent069d7e6be4faa6d10f7e2dd3765d93f925aa2f25 (diff)
yuzu-qt: Load Vulkan device info at startup
Loading it when the configuration opens now incurs a noticeable delay. We also don't need to rediscover the same data repeatedly each time the configuration opens. Moves vulkan device info discovery to yuzu's startup as opposed to the configure_graphics constructor.
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r--src/yuzu/main.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h
index 6bb70972f..e0e775d87 100644
--- a/src/yuzu/main.h
+++ b/src/yuzu/main.h
@@ -118,6 +118,10 @@ enum class ReinitializeKeyBehavior {
Warning,
};
+namespace VkDeviceInfo {
+class Record;
+}
+
class GMainWindow : public QMainWindow {
Q_OBJECT
@@ -418,6 +422,8 @@ private:
GameListPlaceholder* game_list_placeholder;
+ std::vector<VkDeviceInfo::Record> vk_device_records;
+
// Status bar elements
QLabel* message_label = nullptr;
QLabel* shader_building_label = nullptr;