Search Unity

We need help optimizing

Discussion in 'Physics' started by unity_5fpsmegasupergiperprogramer, Oct 14, 2019.

  1. unity_5fpsmegasupergiperprogramer

    unity_5fpsmegasupergiperprogramer

    Joined:
    Dec 1, 2017
    Posts:
    101
    Hey, everybody.
    Mobile game, LWRP.

    Low FPS due to render and physic.

    How to fix it? On stage bots and vehicles that run through rigibody.

    Proffiling on Android.

    upload_2019-10-14_17-40-19.png

    upload_2019-10-14_17-41-28.png
     
  2. unity_5fpsmegasupergiperprogramer

    unity_5fpsmegasupergiperprogramer

    Joined:
    Dec 1, 2017
    Posts:
    101
    There may be a problem with WheelCollider, 6 vehicles = 24 WheelCollider.
    We can't give it up because we need wheel physics, is there an alternative? For mobile devices?
     
  3. unity_5fpsmegasupergiperprogramer

    unity_5fpsmegasupergiperprogramer

    Joined:
    Dec 1, 2017
    Posts:
    101
  4. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    physix runs at a fixed frame rate. so its costs raise if the rest rest of the game is slow as it will update several times.
    so your problem most likely is just caused by rendering.
    you may however try and lower the physix update rate as well.
     
  5. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    There are 6k static colliders maybe that's causing the slowdown