Add various improvements

This commit is contained in:
Wojtek Figat
2025-08-11 23:47:48 +02:00
parent 1bedfd3adf
commit 7fcf6f9c97
4 changed files with 14 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ namespace
CriticalSection PoolLocker;
double LastUpdate;
float LastUpdateGameTime;
Dictionary<Object*, float> Pool(8192);
Dictionary<Object*, float> Pool;
uint64 PoolCounter = 0;
}
@@ -114,6 +114,7 @@ void ObjectsRemovalService::Flush(float dt, float gameDelta)
bool ObjectsRemoval::Init()
{
Pool.EnsureCapacity(8192);
LastUpdate = Platform::GetTimeSeconds();
LastUpdateGameTime = 0;
return false;