update load time estimates. CSimulation is quite high and in need of optimization!
This was SVN commit r3664.
This commit is contained in:
parent
28c6bc2fbb
commit
2e0a312913
@ -249,10 +249,10 @@ void CGameView::RegisterInit(CGameAttributes *pAttribs)
|
||||
RegMemFun1(this, &CGameView::Initialize, pAttribs, L"CGameView init", 1);
|
||||
|
||||
// previously done by CGameView::InitResources
|
||||
RegMemFun(g_TexMan.GetSingletonPtr(), &CTextureManager::LoadTerrainTextures, L"LoadTerrainTextures", 15);
|
||||
RegMemFun(g_TexMan.GetSingletonPtr(), &CTextureManager::LoadTerrainTextures, L"LoadTerrainTextures", 60);
|
||||
RegMemFun(g_ObjMan.GetSingletonPtr(), &CObjectManager::LoadObjects, L"LoadObjects", 1);
|
||||
RegMemFun(g_Renderer.GetSingletonPtr(), &CRenderer::LoadAlphaMaps, L"LoadAlphaMaps", 45);
|
||||
RegMemFun(g_Renderer.GetSingletonPtr()->GetWaterManager(), &WaterManager::LoadWaterTextures, L"LoadWaterTextures", 600);
|
||||
RegMemFun(g_Renderer.GetSingletonPtr(), &CRenderer::LoadAlphaMaps, L"LoadAlphaMaps", 5);
|
||||
RegMemFun(g_Renderer.GetSingletonPtr()->GetWaterManager(), &WaterManager::LoadWaterTextures, L"LoadWaterTextures", 80);
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,13 +53,13 @@ void CMapReader::LoadMap(const char* filename, CTerrain *pTerrain_, CUnitManager
|
||||
g_UnitMan.SetNextID(0);
|
||||
|
||||
// unpack the data
|
||||
RegMemFun(this, &CMapReader::UnpackMap, L"CMapReader::UnpackMap", 1250);
|
||||
RegMemFun(this, &CMapReader::UnpackMap, L"CMapReader::UnpackMap", 1200);
|
||||
|
||||
if (unpacker.GetVersion() >= 3) {
|
||||
// read the corresponding XML file
|
||||
filename_xml = filename;
|
||||
filename_xml = filename_xml.Left(filename_xml.Length()-4) + ".xml";
|
||||
RegMemFun(this, &CMapReader::ReadXML, L"CMapReader::ReadXML", 5000);
|
||||
RegMemFun(this, &CMapReader::ReadXML, L"CMapReader::ReadXML", 5800);
|
||||
}
|
||||
|
||||
// apply data to the world
|
||||
|
@ -40,7 +40,7 @@ CWorld::CWorld(CGame *pGame):
|
||||
void CWorld::Initialize(CGameAttributes *pAttribs)
|
||||
{
|
||||
// TODO: Find a better way of handling these global things
|
||||
ONCE(RegMemFun(CBaseEntityCollection::GetSingletonPtr(), &CBaseEntityCollection::loadTemplates, L"LoadTemplates", 6));
|
||||
ONCE(RegMemFun(CBaseEntityCollection::GetSingletonPtr(), &CBaseEntityCollection::loadTemplates, L"LoadTemplates", 15));
|
||||
|
||||
// Load the map, if one was specified
|
||||
if (pAttribs->m_MapFile.Length())
|
||||
|
@ -58,7 +58,7 @@ int CSimulation::Initialize(CGameAttributes* pAttribs)
|
||||
|
||||
void CSimulation::RegisterInit(CGameAttributes *pAttribs)
|
||||
{
|
||||
RegMemFun1(this, &CSimulation::Initialize, pAttribs, L"CSimulation", 50);
|
||||
RegMemFun1(this, &CSimulation::Initialize, pAttribs, L"CSimulation", 3900);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user