mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Change some stat arrays from double to float (to save mem bandwidth)
This commit is contained in:
1 parent
702c84e019
commit
cc3fbb22e4
4 files changed
+12
-12
No files matched your search
@@ -26,8 +26,8 @@ struct CollectedStats {
|
||||
float fps;
|
||||
float actual_fps;
|
||||
char statbuf[4096];
|
||||
std::vector<double> frameTimes;
|
||||
std::vector<double> sleepTimes;
|
||||
std::vector<float> frameTimes;
|
||||
std::vector<float> sleepTimes;
|
||||
int frameTimePos;
|
||||
};
|
||||
|
||||
@@ -123,8 +123,8 @@ void WebSocketGPUStatsState::FlipListener() {
|
||||
__DisplayGetDebugStats(stats.statbuf, sizeof(stats.statbuf));
|
||||
|
||||
int valid;
|
||||
double *sleepHistory;
|
||||
double *history = __DisplayGetFrameTimes(&valid, &stats.frameTimePos, &sleepHistory);
|
||||
float *sleepHistory;
|
||||
float *history = __DisplayGetFrameTimes(&valid, &stats.frameTimePos, &sleepHistory);
|
||||
|
||||
stats.frameTimes.resize(valid);
|
||||
stats.sleepTimes.resize(valid);
|
||||
|
||||
Reference in new issue
Block a user