mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 07:03:33 +02:00
Just some refactoring of the GPUStatistics struct, and more use of StringWriter
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/Data/Text/StringWriter.h"
|
||||
#include "Core/Debugger/WebSocket/GPUStatsSubscriber.h"
|
||||
#include "Core/HW/Display.h"
|
||||
#include "Core/System.h"
|
||||
@@ -120,7 +122,9 @@ void WebSocketGPUStatsState::FlipListener() {
|
||||
CollectedStats &stats = pendingStats_[pendingStats_.size() - 1];
|
||||
|
||||
__DisplayGetFPS(&stats.vps, &stats.fps, &stats.actual_fps);
|
||||
__DisplayGetDebugStats(stats.statbuf, sizeof(stats.statbuf));
|
||||
|
||||
StringWriter w(stats.statbuf);
|
||||
__DisplayGetDebugStats(w);
|
||||
|
||||
int valid;
|
||||
float *sleepHistory;
|
||||
|
||||
Reference in New Issue
Block a user