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. Dismiss Notice

Question Determinism

Discussion in 'Entity Component System' started by SpindizzyGames, Mar 28, 2023.

  1. SpindizzyGames

    SpindizzyGames

    Joined:
    Jun 29, 2017
    Posts:
    108
    Is Unity ECS itself (NOT the Physics package) cross platform determinstic? Can I use it in rollback netcode to restore ECS world state?
     
    Volshar likes this.
  2. koonm

    koonm

    Joined:
    Jan 5, 2016
    Posts:
    12
    not now,maybe someday!
    you can see DOTS roadmap | Unity, Burst Determinism just under consideration.
     
    Volshar likes this.
  3. TheOtherMonarch

    TheOtherMonarch

    Joined:
    Jul 28, 2012
    Posts:
    791
  4. Selmar

    Selmar

    Joined:
    Sep 13, 2011
    Posts:
    55
    From what I have experienced so far, which is somewhat limited, it is deterministic as long as you do not use floating point operations (which is a difficult subject to tackle).

    As TheOtherMonarch mentioned, rollback isn't working right now, but we do have a prototype working in lockstep.