void CMaterialEffects::GetMemoryUsage(ICrySizer * s) const
{
	SIZER_SUBCOMPONENT_NAME(s,"MaterialEffects");
	s->AddObject(this, sizeof(*this));
	s->AddObject(m_pMaterialFGManager);	
		
	{
		SIZER_SUBCOMPONENT_NAME(s, "libs");
		s->AddObject(m_mfxLibraries);	
	}
	{
		SIZER_SUBCOMPONENT_NAME(s, "convert");		
		s->AddObject(m_customConvert);
		s->AddObject(m_surfaceIdToMatrixEntry);
		s->AddObject(m_ptrToMatrixEntryMap);
	}
	{
		SIZER_SUBCOMPONENT_NAME(s, "lookup");
		s->AddObject(m_effectContainers); // the effects themselves already accounted in "libs"		
		s->AddObject(m_surfacesLookupTable);
	}
	{
		SIZER_SUBCOMPONENT_NAME(s, "playing"); 
		s->AddObject(m_delayedEffects); // the effects themselves already accounted in "libs"		
		//s->AddObject((const void*)&CMFXRandomEffect::GetMemoryUsage, CMFXRandomEffect::GetMemoryUsage());
	}
}
Пример #2
0
void CWeaponSystem::GetMemoryUsage(ICrySizer *s) const
{
	SIZER_SUBCOMPONENT_NAME(s, "WeaponSystem");
	int nSize = sizeof(*this);
	s->AddObject(this,nSize);

	m_tracerManager.GetMemoryUsage(s);
	s->AddContainer(m_fmregistry);
	s->AddContainer(m_zmregistry);
	s->AddContainer(m_projectileregistry);
	s->AddContainer(m_folders);
	s->AddContainer(m_queryResults);
	s->AddContainer(m_config);

	{
		SIZER_SUBCOMPONENT_NAME(s, "AmmoParams");
		int nSize = m_ammoparams.size() * sizeof(TAmmoTypeParams::value_type);

		for(TAmmoTypeParams::const_iterator iter = m_ammoparams.begin(); iter != m_ammoparams.end(); ++iter)
		{
			nSize += iter->second.params->GetMemorySize();
			nSize += iter->second.configurations.size()*sizeof(std::map<string, SAmmoTypeDesc>::value_type);

			for(std::map<string, const SAmmoParams *>::const_iterator it=iter->second.configurations.begin(); it!=iter->second.configurations.end(); it++)
			{
				nSize+=it->first.size();
				nSize+=it->second->GetMemorySize();
			}
		}

		s->AddObject(&m_ammoparams,nSize);
	}

	{
		SIZER_SUBCOMPONENT_NAME(s, "Projectiles");
		int nSize = m_projectiles.size() * sizeof(TProjectileMap::value_type);

		for(TProjectileMap::const_iterator iter = m_projectiles.begin(); iter != m_projectiles.end(); ++iter)
		{
			nSize += iter->second->GetMemorySize();
		}

		s->AddObject(&m_projectiles,nSize);
	}

	{
		SIZER_SUBCOMPONENT_NAME(s, "Pools");
		int nSize = m_pools.size() * sizeof(TAmmoPoolMap::value_type);

		for(TAmmoPoolMap::const_iterator piter = m_pools.begin(); piter != m_pools.end(); ++piter)
		{
			nSize += piter->second.frees.size()*sizeof(CProjectile *);
		}

		s->AddObject(&m_pools,nSize);
	}
}
Пример #3
0
void CGameStateRecorder::GetMemoryStatistics(ICrySizer * s)
{
	SIZER_SUBCOMPONENT_NAME(s, "GameStateRecorder");
	s->Add(*this);
	s->AddContainer(m_listeners);
	s->AddContainer(m_GameStates);
}
Пример #4
0
//-------------------------------------------------------------------
void CFlashUIAction::GetMemoryUsage(ICrySizer * s) const
{
    SIZER_SUBCOMPONENT_NAME(s, "UIAction");
    s->AddObject(this, sizeof(*this));
    if (m_pFlowGraph != NULL)
        m_pFlowGraph->GetMemoryUsage(s);
}
void CTracerManager::GetMemoryStatistics(ICrySizer * s)
{
	SIZER_SUBCOMPONENT_NAME(s, "TracerManager");
	//s->Add(*this);
	//s->AddObject(m_tracerPool);

	for (int16 i=0; i<m_numActiveTracers; i++)
		m_tracerPool[i].GetMemoryStatistics(s);
}
Пример #6
0
void CDialogSystem::GetMemoryStatistics(ICrySizer *pSizer)
{
	SIZER_SUBCOMPONENT_NAME(pSizer,"DialogSystem");
	pSizer->AddObject(m_dialogScriptMap);
	pSizer->AddObject(m_allSessions);
	pSizer->AddObject(m_activeSessions);
	pSizer->AddObject(m_pendingDeleteSessions);
	pSizer->AddObject(m_restoreSessions);	
}
Пример #7
0
void CServerSynchedStorage::GetMemoryUsage(ICrySizer *s) const
{
	SIZER_SUBCOMPONENT_NAME(s,"ServerSychedStorage");
	s->Add(*this);
	s->AddContainer(m_globalQueue);
	s->AddContainer(m_entityQueue);
	s->AddContainer(m_channelQueue);
	s->AddContainer(m_channels);
	GetStorageMemoryStatistics(s);
}
Пример #8
0
//-------------------------------------------------------------------
void CUIActionManager::GetMemoryUsage(ICrySizer * s) const
{
    SIZER_SUBCOMPONENT_NAME(s, "UIActionManager");
    s->AddObject(this, sizeof(*this));
    s->AddObject(&m_listener, m_listener.MemSize());
    s->AddContainer(m_actionStateMap);
    s->AddContainer(m_actionStartMap);
    s->AddContainer(m_actionEndMap);
    s->AddContainer(m_actionEnableMap);
}
Пример #9
0
void CEffectSystem::GetMemoryStatistics(ICrySizer * s)
{
    SIZER_SUBCOMPONENT_NAME(s, "EffectSystem");
    s->AddObject(this, sizeof(*this) );
    s->AddObject(m_nameToId);
    s->AddObject(m_effects);

    for (TEffectClassMap::iterator iter = m_effectClasses.begin(); iter != m_effectClasses.end(); ++iter)
        s->AddObject(iter->first);
}
Пример #10
0
void CTracerManager::GetMemoryUsage(ICrySizer * s) const
{
	SIZER_SUBCOMPONENT_NAME(s, "TracerManager");
	s->Add(*this);
	s->AddContainer(m_updating);
	s->AddContainer(m_actives);
	s->AddContainer(m_pool);

	for (size_t i=0; i<m_pool.size(); i++)
		m_pool[i]->GetMemoryUsage(s);
}
void CGameTokenSystem::GetMemoryStatistics(ICrySizer * s)
{
	SIZER_SUBCOMPONENT_NAME(s, "GameTokenSystem");
	s->Add(*this);
	s->AddObject(m_listeners);
	if ( m_pGameTokensMap )
	{
		s->AddHashMap(*m_pGameTokensMap);

		for (GameTokensMap::iterator iter = m_pGameTokensMap->begin(); iter != m_pGameTokensMap->end(); ++iter)
		{
			iter->second->GetMemoryStatistics(s);
		}
	}
}
Пример #12
0
void CUIManager::GetMemoryUsage( ICrySizer *pSizer ) const
{
	SIZER_SUBCOMPONENT_NAME(pSizer, "CUIManager");
	pSizer->AddObject(this, sizeof(*this));

	pSizer->Add( *m_pWarningManager );
	pSizer->Add( *m_pOptions );
	pSizer->Add( *m_p2DRendUtils );
	pSizer->AddObject( m_pScreenLayoutMan );
	pSizer->AddObject( m_pHudSilhouettes );
	pSizer->AddObject( m_pCVars );
	pSizer->AddObject( m_pMOSystem );
	
	// TODO
// 	TUIEventSystems::const_iterator it = m_EventSystems.begin();
// 	TUIEventSystems::const_iterator end = m_EventSystems.end();
// 	for (;it != end; ++it)
// 		it->second->GetMemoryUsage(pSizer);

}
Пример #13
0
void CServerGameTokenSynch::GetMemoryUsage(ICrySizer *s) const
{
    SIZER_SUBCOMPONENT_NAME(s,"ServerGameTokenSynch");
    //s->AddObject(m_queue);
    //s->AddObject(m_channels);
}
Пример #14
0
void C2DRenderUtils::GetMemoryStatistics(ICrySizer * s)
{
    SIZER_SUBCOMPONENT_NAME(s, "UIDraw");
    s->Add(*this);
}
void CUIDraw::GetMemoryStatistics(ICrySizer * s)
{
	SIZER_SUBCOMPONENT_NAME(s, "UIDraw");
	s->Add(*this);
	s->AddContainer(m_texturesMap);
}
Пример #16
0
void CEquipmentManager::GetMemoryUsage(ICrySizer *pSizer) const
{
	SIZER_SUBCOMPONENT_NAME(pSizer, "EquipmentManager");
	pSizer->AddObject( this, sizeof(*this) );
	pSizer->AddObject(m_equipmentPacks);	
}