MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / GetMemoryUsage

Method GetMemoryUsage

Code/CryEngine/CryAction/GameObjects/GameObjectSystem.cpp:467–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465//////////////////////////////////////////////////////////////////////////
466
467void CGameObjectSystem::GetMemoryUsage(ICrySizer* s) const
468{
469 SIZER_SUBCOMPONENT_NAME(s, "GameObjectSystem");
470
471 s->AddObject(this, sizeof(*this));
472 s->AddObject(m_nameToID);
473 s->AddObject(m_extensionInfo);
474 s->AddObject(m_dispatch);
475 s->AddObject(m_postUpdateObjects);
476 s->AddObject(m_schedulingParams);
477
478 IEntityItPtr pIt = gEnv->pEntitySystem->GetEntityIterator();
479 while (IEntity* pEnt = pIt->Next())
480 {
481 s->AddObject((CGameObject*)pEnt->GetProxy(ENTITY_PROXY_USER));
482 }
483}
484
485//////////////////////////////////////////////////////////////////////
486void CGameObjectSystem::AddSink(IGameObjectSystemSink* pSink)

Callers

nothing calls this directly

Calls 4

GetEntityIteratorMethod · 0.80
AddObjectMethod · 0.45
NextMethod · 0.45
GetProxyMethod · 0.45

Tested by

no test coverage detected