#One more ECS

1 messages · Page 1 of 1 (latest)

normal terrace
granite zenith
#

hi i also made an ecs

normal terrace
granite zenith
#

It took me like 2 weeks to learn about ECS and write this

#

The author of flecs said mine is slow. Because I architected it wrong. May be true, but is fast enough for me.

granite zenith
#

How do you handle when you want to remove / unset a component from an entity while iterating?

#

When I made the ECS I didn't concieve this, and now that I need it I made a hasty attempt to fix it. But it's causing me much trouble

normal terrace
#

@granite zenith I have additional step to filter all entities with components I want to process and save them in array. After this I call system function with this array, so when I remove component it doesn't affect filtered array and I continue iterating