sneakblock / starfall

A 3rd-person action shooter created for Georgia Tech's VGDEV Club in Fall 2022
2 stars 30 forks source link

add object pooling #61

Closed sneakblock closed 2 years ago

sneakblock commented 2 years ago

EVERYTHING:

IS NOW OBJECT POOLED

GameManager has attached components which extend GameObjectPool. These are specific pools for certain gameobject types that many classes may find useful to summon at runtime. They all draw from the same central bucket, so a lot of memory is reused.

This should make performance MUCH better on ALL machines