Search Unity

Question I need EntityCommandBuffer guideline.

Discussion in 'Entity Component System' started by mrbinggrae, Dec 2, 2022.

  1. mrbinggrae

    mrbinggrae

    Joined:
    Mar 6, 2016
    Posts:
    22
    Unity dots has several CommandBufferSystems.



    I've only used SystemAPI.GetSingleton<BeginSimulationEntityCommandBufferSystem.Singleton>() 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?
     
  2. Unique-Player

    Unique-Player

    Joined:
    May 6, 2017
    Posts:
    78
    lclemens, bb8_1 and WAYNGames like this.