Add debugging for GPU/Timers

This commit is contained in:
Connor McLaughlin
2019-10-12 22:15:38 +10:00
parent b945d10b04
commit 0f68c8c5d3
12 changed files with 204 additions and 46 deletions

View File

@ -5,7 +5,6 @@
#include "core/digital_controller.h"
#include "core/gpu.h"
#include "core/memory_card.h"
#include "core/spu.h"
#include "core/system.h"
#include "icon.h"
#include "sdl_audio_stream.h"
@ -496,10 +495,7 @@ void SDLInterface::DrawImGui()
{
DrawMainMenuBar();
if (m_show_gpu_statistics)
m_system->GetGPU()->DrawStatistics();
m_system->GetSPU()->DrawDebugWindow();
m_system->DrawDebugWindows();
DrawOSDMessages();
@ -585,22 +581,7 @@ void SDLInterface::DrawMainMenuBar()
if (ImGui::BeginMenu("Debug"))
{
if (ImGui::BeginMenu("GPU"))
{
ImGui::MenuItem("Show Statistics", nullptr, &m_show_gpu_statistics);
ImGui::Separator();
m_system->GetGPU()->DrawDebugMenu();
ImGui::EndMenu();
}
if (ImGui::BeginMenu("SPU"))
{
m_system->GetSPU()->DrawDebugMenu();
ImGui::EndMenu();
}
m_system->DrawDebugMenus();
ImGui::EndMenu();
}

View File

@ -92,7 +92,4 @@ private:
u32 m_last_internal_frame_number = 0;
u32 m_last_global_tick_counter = 0;
Timer m_fps_timer;
// UI options
bool m_show_gpu_statistics = false;
};