@@ -46,57 +46,25 @@ void AdvancedWidget::CreateWidgets()
4646
4747 auto * main_layout = new QVBoxLayout;
4848
49- // Performance
50- auto * performance_box = new QGroupBox (tr (" Performance Statistics" ));
51- auto * performance_layout = new QGridLayout ();
52- performance_box->setLayout (performance_layout);
53-
54- m_show_fps = new ConfigBool (tr (" Show FPS" ), Config::GFX_SHOW_FPS, m_game_layer);
55- m_show_ftimes = new ConfigBool (tr (" Show Frame Times" ), Config::GFX_SHOW_FTIMES, m_game_layer);
56- m_show_vps = new ConfigBool (tr (" Show VPS" ), Config::GFX_SHOW_VPS, m_game_layer);
57- m_show_vtimes = new ConfigBool (tr (" Show VBlank Times" ), Config::GFX_SHOW_VTIMES, m_game_layer);
58- m_show_graphs =
59- new ConfigBool (tr (" Show Performance Graphs" ), Config::GFX_SHOW_GRAPHS, m_game_layer);
60- m_show_speed = new ConfigBool (tr (" Show % Speed" ), Config::GFX_SHOW_SPEED, m_game_layer);
61- m_show_speed_colors =
62- new ConfigBool (tr (" Show Speed Colors" ), Config::GFX_SHOW_SPEED_COLORS, m_game_layer);
63- m_perf_samp_window = new ConfigInteger (0 , 10000 , Config::GFX_PERF_SAMP_WINDOW, m_game_layer, 100 );
64- m_perf_samp_window->SetTitle (tr (" Performance Sample Window (ms)" ));
65- m_log_render_time = new ConfigBool (tr (" Log Render Time to File" ),
66- Config::GFX_LOG_RENDER_TIME_TO_FILE, m_game_layer);
67-
68- performance_layout->addWidget (m_show_fps, 0 , 0 );
69- performance_layout->addWidget (m_show_ftimes, 0 , 1 );
70- performance_layout->addWidget (m_show_vps, 1 , 0 );
71- performance_layout->addWidget (m_show_vtimes, 1 , 1 );
72- performance_layout->addWidget (m_show_speed, 2 , 0 );
73- performance_layout->addWidget (m_show_graphs, 2 , 1 );
74- performance_layout->addWidget (new QLabel (tr (" Performance Sample Window (ms):" )), 3 , 0 );
75- performance_layout->addWidget (m_perf_samp_window, 3 , 1 );
76- performance_layout->addWidget (m_log_render_time, 4 , 0 );
77- performance_layout->addWidget (m_show_speed_colors, 4 , 1 );
78-
7949 // Debugging
8050 auto * debugging_box = new QGroupBox (tr (" Debugging" ));
8151 auto * debugging_layout = new QGridLayout ();
8252 debugging_box->setLayout (debugging_layout);
8353
54+ m_log_render_time = new ConfigBool (tr (" Log Render Time to File" ),
55+ Config::GFX_LOG_RENDER_TIME_TO_FILE, m_game_layer);
56+
8457 m_enable_wireframe =
8558 new ConfigBool (tr (" Enable Wireframe" ), Config::GFX_ENABLE_WIREFRAME, m_game_layer);
86- m_show_statistics =
87- new ConfigBool (tr (" Show Statistics" ), Config::GFX_OVERLAY_STATS, m_game_layer);
88- m_show_proj_statistics = new ConfigBool (tr (" Show Projection Statistics" ),
89- Config::GFX_OVERLAY_PROJ_STATS, m_game_layer);
9059 m_enable_format_overlay =
9160 new ConfigBool (tr (" Texture Format Overlay" ), Config::GFX_TEXFMT_OVERLAY_ENABLE, m_game_layer);
9261 m_enable_api_validation = new ConfigBool (tr (" Enable API Validation Layers" ),
9362 Config::GFX_ENABLE_VALIDATION_LAYER, m_game_layer);
9463
9564 debugging_layout->addWidget (m_enable_wireframe, 0 , 0 );
96- debugging_layout->addWidget (m_show_statistics, 0 , 1 );
97- debugging_layout->addWidget (m_enable_format_overlay, 1 , 0 );
98- debugging_layout->addWidget (m_show_proj_statistics, 1 , 1 );
99- debugging_layout->addWidget (m_enable_api_validation, 2 , 0 );
65+ debugging_layout->addWidget (m_enable_format_overlay, 0 , 1 );
66+ debugging_layout->addWidget (m_enable_api_validation, 1 , 0 );
67+ debugging_layout->addWidget (m_log_render_time, 1 , 1 );
10068
10169 // Utility
10270 auto * utility_box = new QGroupBox (tr (" Utility" ));
@@ -226,7 +194,6 @@ void AdvancedWidget::CreateWidgets()
226194 experimental_layout->addWidget (m_defer_efb_access_invalidation, 0 , 0 );
227195 experimental_layout->addWidget (m_manual_texture_sampling, 0 , 1 );
228196
229- main_layout->addWidget (performance_box);
230197 main_layout->addWidget (debugging_box);
231198 main_layout->addWidget (utility_box);
232199 main_layout->addWidget (texture_dump_box);
@@ -269,53 +236,9 @@ void AdvancedWidget::OnEmulationStateChanged(bool running)
269236
270237void AdvancedWidget::AddDescriptions ()
271238{
272- static const char TR_SHOW_FPS_DESCRIPTION[] =
273- QT_TR_NOOP (" Shows the number of distinct frames rendered per second as a measure of "
274- " visual smoothness.<br><br><dolphin_emphasis>If unsure, leave this "
275- " unchecked.</dolphin_emphasis>" );
276- static const char TR_SHOW_FTIMES_DESCRIPTION[] =
277- QT_TR_NOOP (" Shows the average time in ms between each distinct rendered frame alongside "
278- " the standard deviation.<br><br><dolphin_emphasis>If unsure, leave this "
279- " unchecked.</dolphin_emphasis>" );
280- static const char TR_SHOW_VPS_DESCRIPTION[] =
281- QT_TR_NOOP (" Shows the number of frames rendered per second as a measure of "
282- " emulation speed.<br><br><dolphin_emphasis>If unsure, leave this "
283- " unchecked.</dolphin_emphasis>" );
284- static const char TR_SHOW_VTIMES_DESCRIPTION[] =
285- QT_TR_NOOP (" Shows the average time in ms between each rendered frame alongside "
286- " the standard deviation.<br><br><dolphin_emphasis>If unsure, leave this "
287- " unchecked.</dolphin_emphasis>" );
288- static const char TR_SHOW_GRAPHS_DESCRIPTION[] =
289- QT_TR_NOOP (" Shows frametime graph along with statistics as a representation of "
290- " emulation performance.<br><br><dolphin_emphasis>If unsure, leave this "
291- " unchecked.</dolphin_emphasis>" );
292- static const char TR_SHOW_SPEED_DESCRIPTION[] =
293- QT_TR_NOOP (" Shows the % speed of emulation compared to full speed."
294- " <br><br><dolphin_emphasis>If unsure, leave this "
295- " unchecked.</dolphin_emphasis>" );
296- static const char TR_SHOW_SPEED_COLORS_DESCRIPTION[] =
297- QT_TR_NOOP (" Changes the color of the FPS counter depending on emulation speed."
298- " <br><br><dolphin_emphasis>If unsure, leave this "
299- " checked.</dolphin_emphasis>" );
300- static const char TR_PERF_SAMP_WINDOW_DESCRIPTION[] =
301- QT_TR_NOOP (" The amount of time the FPS and VPS counters will sample over."
302- " <br><br>The higher the value, the more stable the FPS/VPS counter will be, "
303- " but the slower it will be to update."
304- " <br><br><dolphin_emphasis>If unsure, leave this "
305- " at 1000ms.</dolphin_emphasis>" );
306- static const char TR_LOG_RENDERTIME_DESCRIPTION[] = QT_TR_NOOP (
307- " Logs the render time of every frame to User/Logs/render_time.txt.<br><br>Use this "
308- " feature to measure Dolphin's performance.<br><br><dolphin_emphasis>If "
309- " unsure, leave this unchecked.</dolphin_emphasis>" );
310239 static const char TR_WIREFRAME_DESCRIPTION[] =
311240 QT_TR_NOOP (" Renders the scene as a wireframe.<br><br><dolphin_emphasis>If unsure, leave "
312241 " this unchecked.</dolphin_emphasis>" );
313- static const char TR_SHOW_STATS_DESCRIPTION[] =
314- QT_TR_NOOP (" Shows various rendering statistics.<br><br><dolphin_emphasis>If unsure, "
315- " leave this unchecked.</dolphin_emphasis>" );
316- static const char TR_SHOW_PROJ_STATS_DESCRIPTION[] =
317- QT_TR_NOOP (" Shows various projection statistics.<br><br><dolphin_emphasis>If unsure, "
318- " leave this unchecked.</dolphin_emphasis>" );
319242 static const char TR_TEXTURE_FORMAT_DESCRIPTION[] =
320243 QT_TR_NOOP (" Modifies textures to show the format they're encoded in.<br><br>May require "
321244 " an emulation reset to apply.<br><br><dolphin_emphasis>If unsure, leave this "
@@ -325,6 +248,10 @@ void AdvancedWidget::AddDescriptions()
325248 " debugging graphical issues. On the Vulkan and D3D backends, this also enables "
326249 " debug symbols for the compiled shaders.<br><br><dolphin_emphasis>If unsure, "
327250 " leave this unchecked.</dolphin_emphasis>" );
251+ static const char TR_LOG_RENDERTIME_DESCRIPTION[] = QT_TR_NOOP (
252+ " Logs the render time of every frame to User/Logs/render_time.txt.<br><br>Use this "
253+ " feature to measure Dolphin's performance.<br><br><dolphin_emphasis>If "
254+ " unsure, leave this unchecked.</dolphin_emphasis>" );
328255 static const char TR_DUMP_TEXTURE_DESCRIPTION[] =
329256 QT_TR_NOOP (" Dumps decoded game textures based on the other flags to "
330257 " User/Dump/Textures/<game_id>/.<br><br><dolphin_emphasis>If unsure, leave "
@@ -443,21 +370,10 @@ void AdvancedWidget::AddDescriptions()
443370 static const char IF_UNSURE_UNCHECKED[] =
444371 QT_TR_NOOP (" <dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>" );
445372
446- m_show_fps->SetDescription (tr (TR_SHOW_FPS_DESCRIPTION));
447- m_show_ftimes->SetDescription (tr (TR_SHOW_FTIMES_DESCRIPTION));
448- m_show_vps->SetDescription (tr (TR_SHOW_VPS_DESCRIPTION));
449- m_show_vtimes->SetDescription (tr (TR_SHOW_VTIMES_DESCRIPTION));
450- m_show_graphs->SetDescription (tr (TR_SHOW_GRAPHS_DESCRIPTION));
451- m_show_speed->SetDescription (tr (TR_SHOW_SPEED_DESCRIPTION));
452- m_log_render_time->SetDescription (tr (TR_LOG_RENDERTIME_DESCRIPTION));
453- m_show_speed_colors->SetDescription (tr (TR_SHOW_SPEED_COLORS_DESCRIPTION));
454-
455373 m_enable_wireframe->SetDescription (tr (TR_WIREFRAME_DESCRIPTION));
456- m_show_statistics->SetDescription (tr (TR_SHOW_STATS_DESCRIPTION));
457- m_show_proj_statistics->SetDescription (tr (TR_SHOW_PROJ_STATS_DESCRIPTION));
458374 m_enable_format_overlay->SetDescription (tr (TR_TEXTURE_FORMAT_DESCRIPTION));
459375 m_enable_api_validation->SetDescription (tr (TR_VALIDATION_LAYER_DESCRIPTION));
460- m_perf_samp_window ->SetDescription (tr (TR_PERF_SAMP_WINDOW_DESCRIPTION ));
376+ m_log_render_time ->SetDescription (tr (TR_LOG_RENDERTIME_DESCRIPTION ));
461377 m_dump_textures->SetDescription (tr (TR_DUMP_TEXTURE_DESCRIPTION));
462378 m_dump_mip_textures->SetDescription (tr (TR_DUMP_MIP_TEXTURE_DESCRIPTION));
463379 m_dump_base_textures->SetDescription (tr (TR_DUMP_BASE_TEXTURE_DESCRIPTION));
0 commit comments