[Terrain] Optimize bulk queries to the Terrain System to retrieve height, surface weights, and normals (#7357)
This commit is contained in:
@@ -275,7 +275,7 @@ namespace UnitTest
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZ::Crc32 tags[SurfaceData::SurfaceTagWeights::MaxSurfaceWeights];
|
||||
AZ::Crc32 tags[AzFramework::SurfaceData::Constants::MaxSurfaceWeights];
|
||||
AZ::SimpleLcgRandom randomGenerator(1234567);
|
||||
|
||||
// Declare this outside the loop so that we aren't benchmarking creation and destruction.
|
||||
@@ -316,7 +316,7 @@ namespace UnitTest
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(Entity);
|
||||
|
||||
AZ::Crc32 tags[SurfaceData::SurfaceTagWeights::MaxSurfaceWeights];
|
||||
AZ::Crc32 tags[AzFramework::SurfaceData::Constants::MaxSurfaceWeights];
|
||||
AZ::SimpleLcgRandom randomGenerator(1234567);
|
||||
|
||||
// Declare this outside the loop so that we aren't benchmarking creation and destruction.
|
||||
|
||||
Reference in New Issue
Block a user