Skip to content

Object Pooling optimization #5

@JVinceW

Description

@JVinceW

public class SimpleObjectPooling<T> : IItemLoader<T> where T : MonoBehaviour

  • Unity Object Pool should be the best practice for object pooling in Unity since it handles many performance issues for the pooling process.


  • Spawn/DeSpawnItem method should not be exposed to the public, it must be an internal/private process of the pool since we don't (never) spawn the item directly from outside, instead, we "request" the item, and pooling system will "provide" it for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions