Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question I need EntityCommandBuffer guideline.

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

  1. mrbinggrae

    mrbinggrae

    Joined:
    Mar 6, 2016
    Posts:
    5
    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:
    44
    lclemens, bb8_1 and WAYNGames like this.