Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/Replay.cpp
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | void CReplayPlayer::Replay(const bool serializationtest, const int rejointestturn, const bool ooslog, const bool testHashFull, const bool testHashQuick) | ||||
new CProfileViewer; | new CProfileViewer; | ||||
new CProfileManager; | new CProfileManager; | ||||
g_ScriptStatsTable = new CScriptStatsTable; | g_ScriptStatsTable = new CScriptStatsTable; | ||||
g_ProfileViewer.AddRootTable(g_ScriptStatsTable); | g_ProfileViewer.AddRootTable(g_ScriptStatsTable); | ||||
const int runtimeSize = 384 * 1024 * 1024; | const int runtimeSize = 384 * 1024 * 1024; | ||||
const int heapGrowthBytesGCTrigger = 20 * 1024 * 1024; | const int heapGrowthBytesGCTrigger = 20 * 1024 * 1024; | ||||
g_ScriptRuntime = ScriptInterface::CreateRuntime(shared_ptr<ScriptRuntime>(), runtimeSize, heapGrowthBytesGCTrigger); | g_ScriptRuntime = ScriptRuntime::CreateRuntime(runtimeSize, heapGrowthBytesGCTrigger); | ||||
Mod::CacheEnabledModVersions(g_ScriptRuntime); | Mod::CacheEnabledModVersions(g_ScriptRuntime); | ||||
g_Game = new CGame(false); | g_Game = new CGame(false); | ||||
if (serializationtest) | if (serializationtest) | ||||
g_Game->GetSimulation2()->EnableSerializationTest(); | g_Game->GetSimulation2()->EnableSerializationTest(); | ||||
if (rejointestturn >= 0) | if (rejointestturn >= 0) | ||||
g_Game->GetSimulation2()->EnableRejoinTest(rejointestturn); | g_Game->GetSimulation2()->EnableRejoinTest(rejointestturn); | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator