2017-06-15 23:43:01 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-15 23:43:01 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-04-29 03:48:48 +00:00
|
|
|
#include <QWidget>
|
2017-06-15 23:43:01 +00:00
|
|
|
|
2023-04-21 21:02:53 +00:00
|
|
|
class ConfigBool;
|
2023-04-25 03:36:43 +00:00
|
|
|
class ConfigChoice;
|
2023-04-29 02:41:09 +00:00
|
|
|
class ConfigInteger;
|
2017-06-15 23:43:01 +00:00
|
|
|
class GraphicsWindow;
|
|
|
|
class QCheckBox;
|
2020-04-26 21:40:47 +00:00
|
|
|
class QComboBox;
|
2019-07-17 18:15:25 +00:00
|
|
|
class QSpinBox;
|
2020-10-21 01:01:33 +00:00
|
|
|
class ToolTipCheckBox;
|
2017-06-15 23:43:01 +00:00
|
|
|
|
2023-04-29 03:48:48 +00:00
|
|
|
class AdvancedWidget final : public QWidget
|
2017-06-15 23:43:01 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit AdvancedWidget(GraphicsWindow* parent);
|
|
|
|
|
|
|
|
private:
|
2023-04-29 03:48:48 +00:00
|
|
|
void LoadSettings();
|
|
|
|
void SaveSettings();
|
2017-06-15 23:43:01 +00:00
|
|
|
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
void AddDescriptions();
|
|
|
|
void OnBackendChanged();
|
|
|
|
void OnEmulationStateChanged(bool running);
|
|
|
|
|
|
|
|
// Debugging
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_enable_wireframe;
|
|
|
|
ConfigBool* m_show_statistics;
|
2023-09-09 18:33:43 +00:00
|
|
|
ConfigBool* m_show_proj_statistics;
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_enable_format_overlay;
|
|
|
|
ConfigBool* m_enable_api_validation;
|
|
|
|
ConfigBool* m_show_fps;
|
|
|
|
ConfigBool* m_show_ftimes;
|
|
|
|
ConfigBool* m_show_vps;
|
|
|
|
ConfigBool* m_show_vtimes;
|
|
|
|
ConfigBool* m_show_graphs;
|
|
|
|
ConfigBool* m_show_speed;
|
|
|
|
ConfigBool* m_show_speed_colors;
|
2023-04-29 02:41:09 +00:00
|
|
|
ConfigInteger* m_perf_samp_window;
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_log_render_time;
|
2017-06-15 23:43:01 +00:00
|
|
|
|
|
|
|
// Utility
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_prefetch_custom_textures;
|
|
|
|
ConfigBool* m_dump_efb_target;
|
|
|
|
ConfigBool* m_dump_xfb_target;
|
|
|
|
ConfigBool* m_disable_vram_copies;
|
|
|
|
ConfigBool* m_load_custom_textures;
|
2022-03-31 05:44:32 +00:00
|
|
|
ToolTipCheckBox* m_enable_graphics_mods;
|
2017-06-15 23:43:01 +00:00
|
|
|
|
2020-05-05 04:07:06 +00:00
|
|
|
// Texture dumping
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_dump_textures;
|
|
|
|
ConfigBool* m_dump_mip_textures;
|
|
|
|
ConfigBool* m_dump_base_textures;
|
2020-05-05 04:07:06 +00:00
|
|
|
|
2019-07-17 18:02:08 +00:00
|
|
|
// Frame dumping
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_dump_use_ffv1;
|
2024-02-22 00:11:31 +00:00
|
|
|
ConfigChoice* m_frame_dumps_resolution_type;
|
2023-04-29 02:41:09 +00:00
|
|
|
ConfigInteger* m_dump_bitrate;
|
|
|
|
ConfigInteger* m_png_compression_level;
|
2019-07-17 18:02:08 +00:00
|
|
|
|
2017-06-15 23:43:01 +00:00
|
|
|
// Misc
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_enable_cropping;
|
2020-10-21 01:01:33 +00:00
|
|
|
ToolTipCheckBox* m_enable_prog_scan;
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_backend_multithreading;
|
|
|
|
ConfigBool* m_prefer_vs_for_point_line_expansion;
|
|
|
|
ConfigBool* m_cpu_cull;
|
|
|
|
ConfigBool* m_borderless_fullscreen;
|
2019-03-09 02:36:32 +00:00
|
|
|
|
|
|
|
// Experimental
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_defer_efb_access_invalidation;
|
|
|
|
ConfigBool* m_manual_texture_sampling;
|
2017-06-15 23:43:01 +00:00
|
|
|
};
|