Search Unity

Cpu GPU calculation difference

Discussion in 'Entity Component System' started by franky_U, Jul 9, 2019.

  1. franky_U

    franky_U

    Joined:
    Mar 13, 2019
    Posts:
    12
    i gave various system which are doing some calculation one by one and in the end i am generating procedural mesh to draw an object(lets say sphere,created once only for initialisation).The position of the object is being set by the data provided by the system.
    The ECS system us using the hybrid approach.so it is running on main thread.
    The problem is when the object moves based on the data provided by the system.it is flickering and not giving the smooth translation. Is this because the sync difference between CPU processing & GPU .or could be because everything is running on main thread.
    Should i use Job system to avoid this? or
    What could be the best possible solution to avoid this situation?
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,264
    Jobs probably won't solve your problem. Which version of Entities are you using? In latest ECS, the update rate is synced with the framerate so if you have jitter it is likely an issue with your code. If anything is running in FixedUpdate, then jitter is expected and you will need to compensate.