#ECB from Gameobjects

1 messages · Page 1 of 1 (latest)

shut raft
#

Hi i just wanna know if it is possible to use an Entity Command Buffer outside of ECS to instantiate/configure objects?. I use ECS for one kind of objects in my game and i wanna instantiate up to hundreds of them at the same time from a gameobject or coroutine.

Is it possible to do that ? If possible can you help me figure this out ?

small spindle
shut raft
#

So using an entitymanager would be the same performance ?

small spindle
#

Yes.

shut raft
#

Okay but just to know, why you use ECB inside ECS ? whats the purpose

small spindle
#

Command buffers are for deferring execution to the main thread. There are operations, like instantiating entities that can't be done on background threads, but they can be scheduled to execute on the main thread via a command buffer.

#

It is an important part of the whole ecs/jobs thing.

shut raft
#

Ahh okay so its just for synchronisation then

small spindle
#

Yes