mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Just some refactoring of the GPUStatistics struct, and more use of StringWriter
This commit is contained in:
1 parent
3b6ecc4001
commit
f60e27a9b7
62 files changed
+413
-426
No files matched your search
@@ -3,6 +3,7 @@
|
||||
#include "ext/imgui/imgui_extras.h"
|
||||
#include "ext/imgui/imgui_impl_thin3d.h"
|
||||
#include "Common/Data/Convert/ColorConv.h"
|
||||
#include "Common/Data/Text/StringWriter.h"
|
||||
#include "UI/ImDebugger/ImGe.h"
|
||||
#include "UI/ImDebugger/ImDebugger.h"
|
||||
#include "GPU/Common/GPUDebugInterface.h"
|
||||
@@ -33,7 +34,7 @@ void DrawFramebuffersWindow(ImConfig &cfg, FramebufferManagerCommon *framebuffer
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::Text("Cur frame: %d seq: %d", gpuStats.numFlips, framebufferManager->PeekBindSeqCount());
|
||||
ImGui::Text("Cur frame: %d seq: %d", gpuStats.totals.numFlips, framebufferManager->PeekBindSeqCount());
|
||||
|
||||
ImGui::BeginTable("framebuffers", 7);
|
||||
ImGui::TableSetupColumn("Tag", ImGuiTableColumnFlags_WidthFixed);
|
||||
@@ -282,7 +283,8 @@ void DrawDebugStatsWindow(ImConfig &cfg) {
|
||||
return;
|
||||
}
|
||||
char statbuf[4096];
|
||||
__DisplayGetDebugStats(statbuf, sizeof(statbuf));
|
||||
StringWriter w(statbuf);
|
||||
__DisplayGetDebugStats(w);
|
||||
ImGui::TextUnformatted(statbuf);
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user