Spiking in FPS.

It seems i’m spiking with the reflectionProbes.update, What would be a fix on it?

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.

2 Likes

the reflection probe was the problem. It was spiking very heavily due to real time.