I need EntityCommandBuffer guideline.

Unity dots has several CommandBufferSystems.

I've only used SystemAPI.GetSingleton() so far.

But it looks like this could be a problem.

But I don't know which CommandBuffer to use for each system.

for example
May I use the Begin Variable Rate Simulation CommandBuffer in the Player Move system?

Can using CommandBuffer incorrectly cause frame loss?

Referencing this link - https://discussions.unity.com/t/882125/16

  • Use ecb-begin to destroy entities
  • Use ecb-end for all other operations (add/remove/set/has/get/etc).
3 Likes