Search Unity

Spiking in FPS.

Discussion in 'General Graphics' started by KingLlama, May 12, 2018.

  1. KingLlama

    KingLlama

    Joined:
    Jul 18, 2015
    Posts:
    180
    It seems i'm spiking with the reflectionProbes.update, What would be a fix on it? upload_2018-5-11_22-44-21.png
     
  2. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,267
    Profile a build on the target platform, rather than in the editor. The performance characteristics between a build and edit are often significantly. According to the screenshot, it seems the highlighted code path also outputs debug.log messages, which is often slow due to the stackwalker.

    I would also give deep profile a try, to find out what specifically under the highlighted entry in the profiler is slow. Deep profile might work in the editor only and causes a significant performance drop, so it is useful to a certain degree only.

    Perhaps the reflection probes are set up as realtime? This often has significant performance impact.
     
    theANMATOR2b and KingLlama like this.
  3. KingLlama

    KingLlama

    Joined:
    Jul 18, 2015
    Posts:
    180
    the reflection probe was the problem. It was spiking very heavily due to real time.