Add more profile events

This commit is contained in:
Wojtek Figat
2021-07-06 16:17:11 +02:00
parent bf67c62311
commit 9f9e5b49cc
8 changed files with 47 additions and 4 deletions

View File

@@ -328,6 +328,8 @@ FoliageType* Foliage::GetFoliageType(int32 index)
void Foliage::AddFoliageType(Model* model)
{
PROFILE_CPU();
// Ensure to have unique model
CHECK(model);
for (int32 i = 0; i < FoliageTypes.Count(); i++)
@@ -352,6 +354,8 @@ void Foliage::AddFoliageType(Model* model)
void Foliage::RemoveFoliageType(int32 index)
{
PROFILE_CPU();
// Remove instances using this foliage type
if (FoliageTypes.Count() != 1)
{