GC细节调整
This commit is contained in:
parent
c8e8a38685
commit
2ee6ec29fe
|
|
@ -61,7 +61,7 @@ e2d::GC::~GC()
|
|||
}
|
||||
|
||||
|
||||
void e2d::GC::update()
|
||||
void e2d::GC::flush()
|
||||
{
|
||||
if (!_instance._notifyed)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ void e2d::Game::start(bool cleanup)
|
|||
actionManager->update(); // 更新动作管理器
|
||||
sceneManager->update(); // 更新场景内容
|
||||
renderer->render(); // 渲染游戏画面
|
||||
GC::update(); // 刷新内存池
|
||||
GC::flush(); // 刷新内存池
|
||||
|
||||
Time::__updateLast(); // 刷新时间信息
|
||||
}
|
||||
|
|
@ -87,8 +87,6 @@ void e2d::Game::start(bool cleanup)
|
|||
}
|
||||
}
|
||||
|
||||
_ended = true;
|
||||
|
||||
if (cleanup)
|
||||
{
|
||||
Game::cleanup();
|
||||
|
|
|
|||
|
|
@ -549,10 +549,10 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
// 更新垃圾回收器状态
|
||||
static void update();
|
||||
// 刷新内存池
|
||||
static void flush();
|
||||
|
||||
// 清空所有对象
|
||||
// 回收内存池中的所有对象
|
||||
static void clear();
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Reference in New Issue