[Terrain] Optimize bulk queries to the Terrain System to retrieve height, surface weights, and normals (#7357)

This commit is contained in:
amzn-sj
2022-02-10 05:53:21 -08:00
committed by GitHub
parent dac3bc4ba6
commit 396ec8a247
8 changed files with 427 additions and 73 deletions
@@ -42,7 +42,7 @@ namespace SurfaceData
AzFramework::SurfaceData::SurfaceTagWeightList SurfaceTagWeights::GetSurfaceTagWeightList() const
{
AzFramework::SurfaceData::SurfaceTagWeightList weights;
weights.reserve(m_weights.size());
for (auto& weight : m_weights)
{
weights.emplace_back(weight);