SImplify capacity presetting for Dictionary to handle memory slack scale internally as suers care about items count only
This commit is contained in:
@@ -88,7 +88,7 @@ bool SceneCSGData::TryGetSurfaceData(const Guid& brushId, int32 brushSurfaceInde
|
||||
// Invalid data
|
||||
return false;
|
||||
}
|
||||
DataBrushLocations.EnsureCapacity((int32)(brushesCount * 4.0f));
|
||||
DataBrushLocations.EnsureCapacity(brushesCount);
|
||||
for (int32 i = 0; i < brushesCount; i++)
|
||||
{
|
||||
Guid id;
|
||||
|
||||
Reference in New Issue
Block a user