Refactor SortOrder to use int8 instead of int16 due to performance reasons (more efficent sort keys packing in rendering)

This commit is contained in:
Wojtek Figat
2024-06-29 13:54:02 +02:00
parent 516ed3e9a0
commit 78f3248ac9
15 changed files with 51 additions and 49 deletions

View File

@@ -92,7 +92,7 @@ int32 StaticModel::GetSortOrder() const
void StaticModel::SetSortOrder(int32 value)
{
_sortOrder = (int16)Math::Clamp<int32>(value, MIN_int16, MAX_int16);
_sortOrder = (int8)Math::Clamp<int32>(value, MIN_int8, MAX_int8);
}
bool StaticModel::HasLightmap() const