Proper setup of PerformanceView/ProcessMeter

This commit is contained in:
Sean Miller
2026-04-07 15:38:16 +01:00
parent b56b7cc1b0
commit 373e541fa6
4 changed files with 18 additions and 14 deletions
+2 -1
View File
@@ -3,13 +3,14 @@
#include "common.h"
#include "egg/core/eggHeap.h"
#include "egg/core/eggProcessMeter.h"
#include "egg/core/eggSystem.h"
#include "nw4r/ut/ut_Color.h"
#define ROUND_UP_4KB(x) (((u32)(x) + 4096 - 1) & ~(4096 - 1))
typedef EGG::TSystem<
EGG::Video, EGG::AsyncDisplay, EGG::XfbManager, EGG::SimpleAudioMgr, EGG::SceneManager, EGG::PerformanceView>
EGG::Video, EGG::AsyncDisplay, EGG::XfbManager, EGG::SimpleAudioMgr, EGG::SceneManager, EGG::ProcessMeter>
System;
class dSndMgr_c;
+14
View File
@@ -0,0 +1,14 @@
#ifndef EGG_PROCESS_METER_H
#define EGG_PROCESS_METER_H
#include "egg/core/eggThread.h"
namespace EGG {
class PerformanceView {};
class ProcessMeter : public Thread, public PerformanceView {};
};
#endif // EGG_PROCESS_METER_H
+1 -12
View File
@@ -6,13 +6,6 @@
namespace EGG {
// TODO Proper definition of PerformanceView
class PerformanceView {
public:
u8 placeholder[0x4c];
/* 0x4c */ u32 _4c;
};
class Display;
class Heap;
class PerformanceView;
@@ -99,11 +92,7 @@ public:
}
PerformanceView *getPerfView() override {
if (!mPerfView) {
return mPerfView;
}
// TODO remove cast hack if/when more is known about PerformanceView
return static_cast<PerformanceView *>((void *)&mPerfView->_4c);
return static_cast<PerformanceView *>(mPerfView);
}
SceneManager *getSceneMgr() override {