In Atom_Feature_Common.static, get cvar values from cvar system instead of reading directly (#5350)

Signed-off-by: Tommy Walton <waltont@amazon.com>
This commit is contained in:
Tommy Walton
2021-11-11 12:55:23 -08:00
committed by GitHub
parent f1d9e7ae28
commit e3c3db4ba6
2 changed files with 12 additions and 2 deletions
@@ -98,7 +98,12 @@ namespace AZ
}
m_needsInit = false;
const AZ::u64 sizeInMb = r_skinnedMeshInstanceMemoryPoolSize;
AZ::u64 sizeInMb{};
if (auto console = AZ::Interface<AZ::IConsole>::Get(); console != nullptr)
{
console->GetCvarValue("r_skinnedMeshInstanceMemoryPoolSize", sizeInMb);
}
m_sizeInBytes = sizeInMb * (1024u * 1024u);
CalculateAlignment();