Search Unity

How to put all the SimulationGroup in FixedUpdate ?

Discussion in 'Entity Component System' started by Opeth001, Aug 1, 2019.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,116
    Hi everyone,
    I'm getting a lot of Stuttering/Jittering within my game while running between 55~60 fps (mobile), 260~300 (editor)
    It seems like when the fps is not stable in a single value the character or camera become crazy.
    Yes! I'm smoothing movements using math.lerp and deltaTime , player movement system is withing the SimulationSystemGroup, camera follow system is within PresentationSystemGroup.

    It seems like i need to put all the SimulationSystemGroup in a Fixed Frame Rate (FixedUpdate). How to can i do it ?
    I can also set the targed frame rate to 30 fps but I want the player communication with server to be faster than 30ms.
     
    Last edited: Aug 1, 2019
  2. digitaliliad

    digitaliliad

    Joined:
    Jul 1, 2018
    Posts:
    64
  3. Enzi

    Enzi

    Joined:
    Jan 28, 2013
    Posts:
    962
    Opeth001 likes this.