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.

Resolved Will EntityCommandBuffer operations for 'entity queries evaluated at playback time' return?

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by Rupture13, Dec 8, 2022.

  1. Rupture13


    Apr 12, 2016
    A while ago, the EntityCommandBuffer operations that work on an entityQuery that is evaluated at playback time were removed.
    This leaves us with two remaining options:
    1. Calling the operation on every individual entity in the query.
    2. Calling the operation on a NativeArray of the entities in the query, which therefore is evaluated at command issuing time.
    Both of these to me seem inferior in terms of performance than the removed option. Am I correct in that? If so, will the removed option make its return?
  2. cort_of_unity


    Unity Technologies

    Aug 15, 2018
    Thank you for bringing this up; you're definitely not the first. I've raised a proposal internally to restore the previous semantics for these commands. It'll still need to be discussed, approved, and implemented, but the wheel is in motion.
    Rupture13 likes this.