summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-13 12:31:23 +0100
committeraap <aap@papnet.eu>2021-01-13 12:31:33 +0100
commit1b55a9956f6dbb2e89e739c133158aa6e08fc9e8 (patch)
tree9deee06a7f79aba79aa621217c60abd89e767761 /src/core
parentMerge pull request #957 from erorcun/miami (diff)
downloadre3-1b55a9956f6dbb2e89e739c133158aa6e08fc9e8.tar
re3-1b55a9956f6dbb2e89e739c133158aa6e08fc9e8.tar.gz
re3-1b55a9956f6dbb2e89e739c133158aa6e08fc9e8.tar.bz2
re3-1b55a9956f6dbb2e89e739c133158aa6e08fc9e8.tar.lz
re3-1b55a9956f6dbb2e89e739c133158aa6e08fc9e8.tar.xz
re3-1b55a9956f6dbb2e89e739c133158aa6e08fc9e8.tar.zst
re3-1b55a9956f6dbb2e89e739c133158aa6e08fc9e8.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp
index d0663c30..a84bd495 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -1421,11 +1421,13 @@ Idle(void *arg)
CSprite2d::InitPerFrame();
CFont::InitPerFrame();
+ PUSH_MEMID(MEMID_GAME_PROCESS);
CPointLights::InitPerFrame();
tbStartTimer(0, "CGame::Process");
CGame::Process();
tbEndTimer("CGame::Process");
+ POP_MEMID();
tbStartTimer(0, "DMAudio.Service");
DMAudio.Service();
@@ -1447,6 +1449,8 @@ Idle(void *arg)
if(arg == nil)
return;
+ PUSH_MEMID(MEMID_RENDER);
+
if(!FrontEndMenuManager.m_bMenuActive && TheCamera.GetScreenFadeStatus() != FADE_2)
{
// This is from SA, but it's nice for windowed mode