I’m deep profiling my WebGL build and I sometimes see strange data.
Most of the time, the CPU usage hierarchy looks like this, with my scripts under BehaviourUpdate:
But sometimes, the CPU usage graph suddenly goes way up, and the hierarchy looks like this:
When I switch focus to the profiler window and then back to the browser, things go back to normal. I’m not sure if going into this strange state correlates with performance problems in my game. At least once, I’ve seen my game performing just fine while the profiler is in this state. My own FPS counter shows it running at 60fps but the profiler graph shows frames taking much longer than 16ms.
Does anyone know what is going on here? Should I file a bug?
Platform details:
- Unity 6000.0.37f1
- Macbook Pro 15-inch 2019 (Intel i9)
- MacOS Sequoia 15.2
- WebGL development build with deep profiling enabled
- Firefox 135.0 (64-bit)
- Built-in render pipeline

