Reset prefab system in all prefab benchmarks

This commit is contained in:
srikappa-amzn
2021-06-11 10:03:20 -07:00
parent bbae6490d9
commit 2722ed46c3
2 changed files with 6 additions and 1 deletions
@@ -41,6 +41,10 @@ namespace Benchmark
{
newInstances[instanceCounter] = m_prefabSystemComponent->InstantiatePrefab(templateToInstantiateId);
}
state.PauseTiming();
ResetPrefabSystem();
state.ResumeTiming();
}
state.SetComplexityN(numInstances);
@@ -36,7 +36,8 @@ namespace Benchmark
AzFramework::Spawnable spawnable;
AzToolsFramework::Prefab::SpawnableUtils::CreateSpawnable(spawnable, prefabDom);
ResetPrefabSystem();
state.ResumeTiming();
}