推
This commit is contained in:
@@ -51,10 +51,14 @@ public:
|
||||
void Render();
|
||||
void Clear();
|
||||
|
||||
void MemoryReclaims();
|
||||
|
||||
// 切换场景
|
||||
void ChangeScene(RefPtr<Scene> scene);
|
||||
// 设定UI层场景对象
|
||||
void ChangeUIScene(RefPtr<Scene> scene);
|
||||
// 获取当前游戏层场景
|
||||
RefPtr<Scene> GetScene();
|
||||
|
||||
RenderManager *GetRenderer();
|
||||
|
||||
@@ -79,7 +83,7 @@ private:
|
||||
#ifdef __SWITCH__
|
||||
float m_Settingfps = 5000.0;
|
||||
#else
|
||||
float m_Settingfps = 5000.0;
|
||||
float m_Settingfps = 144.0;
|
||||
#endif
|
||||
// 单帧时间
|
||||
float m_frameTime = 0.f;
|
||||
@@ -88,6 +92,10 @@ private:
|
||||
// 每秒内的帧数计数器
|
||||
u32 m_frameCounter;
|
||||
u32 m_lastFpsPrintTime;
|
||||
// 内存回收计时器
|
||||
u32 m_lastMemoryPrintTime = 0;
|
||||
// 内存回收间隔
|
||||
u32 m_memoryPrintInterval = 5000;
|
||||
|
||||
public:
|
||||
// 屏幕宽高
|
||||
|
||||
Reference in New Issue
Block a user