Search Unity

Feature Request Check component delta update API

Discussion in 'NetCode for ECS' started by optimise, Dec 24, 2021.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Hi @CMarastoni. Will it have check component delta update API at dots 0.5 netcode package that able to do something just like WithChangeFilter that won't update every single frame since component marked with GhostField will make WithChangeFilter not working anymore and update every frame? Generally I want to use it for update UI only when there is delta changes instead of every single frame for better performance. But of course the best solution is make WithChangeFilter still working properly as usual for component marked with GhostField.
     
  2. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    900
    not for 0.5. I'm not even suer if that will happen for 1.0.

    I can hardly see at the moment using WithChangeFilter for that. We need to get write access for the serialized components when we are receiving data or interpolating them, and that mark them as changed, no matter what.

    It is something we need to investigate, but I don't have an ETA for that
     
    optimise likes this.