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 ECS World FPS

Discussion in 'Entity Component System' started by QuebecDev, Feb 5, 2023.

  1. QuebecDev

    QuebecDev

    Joined:
    May 9, 2020
    Posts:
    37
    Hi,

    I was wondering how I can set a target frame per second per world.

    Example:
    worldA.FPS = 15;
    worldB.FPS = 30;
    worldC.FPS = 5;

    Right now I am using worldA.Update() to manually update at the desired tick rate. Is there another way in ECs 1.0?
     
  2. UniqueCode

    UniqueCode

    Joined:
    Oct 20, 2015
    Posts:
    40
    I would expect Application.targetFrameRate to work the same in ecs (f.i. Time.timeScale works for ecs too, so it seems Unity frame = ECS frame). Which means, if you want a custom tick rate per world you have to do it yourself.
     
  3. QuebecDev

    QuebecDev

    Joined:
    May 9, 2020
    Posts:
    37
    I am looking for a way that will allow me to keep the systems visible in the 'SystemProfiler' do you have an idea?
     
  4. FederalRazer89

    FederalRazer89

    Joined:
    Nov 24, 2019
    Posts:
    83