Ukendio / jecs

A fast, portable Entity Component System for Luau
https://ukendio.github.io/jecs/
MIT License
146 stars 26 forks source link

Entity recycling #156

Closed Ukendio closed 2 days ago

Ukendio commented 3 days ago

Some games scale tremendously where they require spawning hundreds of entities every frame. With entity recycling we can extend the support of entities from 2^24 to 2^40 by recycling the indexes and incrementing the generation each time.