more castings
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -583,7 +583,7 @@ namespace UnitTest
|
||||
AzToolsFramework::EditorInteractionSystemViewportSelectionRequestBus::EventResult(
|
||||
m_mouseInteractionResult, AzToolsFramework::GetEntityContextId(),
|
||||
&AzToolsFramework::EditorInteractionSystemViewportSelectionRequestBus::Events::InternalHandleAllMouseInteractions,
|
||||
vi::MouseInteractionEvent(mouseInteraction, ev->angleDelta().y()));
|
||||
vi::MouseInteractionEvent(mouseInteraction, static_cast<float>(ev->angleDelta().y())));
|
||||
}
|
||||
|
||||
MouseInteractionResult m_mouseInteractionResult;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabCreate, CreatePrefabs_SingleEntityEach)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numEntities = state.range();
|
||||
const unsigned int numEntities = static_cast<unsigned int>(state.range());
|
||||
const unsigned int numInstances = numEntities;
|
||||
|
||||
CreateFakePaths(numInstances);
|
||||
@@ -58,7 +58,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabCreate, CreatePrefab_FromEntities)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numEntities = state.range();
|
||||
const unsigned int numEntities = static_cast<unsigned int>(state.range());
|
||||
|
||||
for (auto _ : state)
|
||||
{
|
||||
@@ -93,7 +93,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabCreate, CreatePrefab_FromSingleDepthInstances)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numInstancesToAdd = state.range();
|
||||
const unsigned int numInstancesToAdd = static_cast<unsigned int>(state.range());
|
||||
const unsigned int numEntities = numInstancesToAdd;
|
||||
|
||||
// Create fake paths for all the nested instances
|
||||
@@ -144,7 +144,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabCreate, CreatePrefab_FromLinearNestingOfInstances)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numInstances = state.range();
|
||||
const unsigned int numInstances = static_cast<unsigned int>(state.range());
|
||||
|
||||
// Create fake paths for all the nested instances
|
||||
// plus the root instance
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabInstantiate, InstantiatePrefab_SingleEntityInstance)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numInstances = state.range();
|
||||
const unsigned int numInstances = static_cast<unsigned int>(state.range());
|
||||
|
||||
AZStd::unique_ptr<Instance> firstInstance = m_prefabSystemComponent->CreatePrefab(
|
||||
{ CreateEntity("Entity1") },
|
||||
|
||||
+5
-5
@@ -18,7 +18,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_SingeEntityInstances)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numInstances = state.range();
|
||||
const unsigned int numInstances = static_cast<unsigned int>(state.range());
|
||||
|
||||
CreateFakePaths(2);
|
||||
const auto& nestedTemplatePath = m_paths.front();
|
||||
@@ -80,7 +80,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_SingleLinearNestingOfInstances)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int maxDepth = state.range();
|
||||
const unsigned int maxDepth = static_cast<unsigned int>(state.range());
|
||||
CreateFakePaths(maxDepth);
|
||||
|
||||
const unsigned int numInstances = maxDepth;
|
||||
@@ -131,8 +131,8 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_MultipleLinearNestingOfInstances)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numRootInstances = state.range();
|
||||
const unsigned int maxDepth = state.range();
|
||||
const unsigned int numRootInstances = static_cast<unsigned int>(state.range());
|
||||
const unsigned int maxDepth = static_cast<unsigned int>(state.range());
|
||||
CreateFakePaths(maxDepth);
|
||||
|
||||
const unsigned int numInstances = numRootInstances * maxDepth;
|
||||
@@ -192,7 +192,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_PrefabUpdateInstances, UpdateInstances_BinaryTreeNestedInstanceHierarchy)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int maxDepth = state.range();
|
||||
const unsigned int maxDepth = static_cast<unsigned int>(state.range());
|
||||
CreateFakePaths(maxDepth);
|
||||
|
||||
const unsigned int numInstances = (1 << maxDepth) - 1;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ namespace Benchmark
|
||||
|
||||
BENCHMARK_DEFINE_F(BM_SpawnableCreate, CreateSpawnable_SingleEntityInstance)(::benchmark::State& state)
|
||||
{
|
||||
const unsigned int numSpawnables = state.range();
|
||||
const unsigned int numSpawnables = static_cast<unsigned int>(state.range());
|
||||
|
||||
AZStd::unique_ptr<Instance> instance(m_prefabSystemComponent->CreatePrefab(
|
||||
{ CreateEntity("Entity1") },
|
||||
|
||||
Reference in New Issue
Block a user