Optimize VariantType to use static type name in game or from non-reloadable assemblies
This avoids many dynamic memory allocations in Visual Scripts and Anim Graph. #
This commit is contained in:
@@ -78,7 +78,10 @@ void Serialization::Deserialize(ISerializable::DeserializeStream& stream, Varian
|
||||
v.Type = VariantType::Null;
|
||||
const auto mTypeName = SERIALIZE_FIND_MEMBER(stream, "TypeName");
|
||||
if (mTypeName != stream.MemberEnd() && mTypeName->value.IsString())
|
||||
{
|
||||
v.SetTypeName(StringAnsiView(mTypeName->value.GetStringAnsiView()));
|
||||
v.Inline();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user