Doraku / DefaultEcs

Entity Component System framework aiming for syntax and usage simplicity with maximum performance for game development.
MIT No Attribution
654 stars 62 forks source link

Sometimes when creating a new entity, the components on a previously disposed entity with the same ID are still present #189

Open mystborn opened 7 months ago

mystborn commented 7 months ago

I currently have a very basic SHMUP game running, and as stated in the title, sometimes when spawning new entities, the components from the old ones are still around which causes some very funky behaviour and was a debugging nightmare. I've tried a few different solutions, using an EntityCommandRecorder, just saving a list of delete and create actions that get run after the systems during a frame, etc, but nothing works. Tried on the latest stable and unstable branches.

nrader95 commented 7 months ago

Any idea of how this can be reliably reproduced? Although i doubt it will be fixed in this main repo as it didnt seen new activity for about a year, so all hope is on forks, i guess.