High GPU Usage after moving from 2021 to 6

Hi, I just upgraded my project from LTS 2021 to the recent 6. The GPU and CPU usage is really high in edit mode, and spinning up my fan all the time which is really annoying - are there any easy fixes? I already tried turning on vsync in the game view.

If it helps, there’s a buzzing sound my computer makes whenever I would rotate the camera in the scene view in 2021. I noticed that sometimes that sound just constantly plays even when I’m not moving the scene view - is something triggering a repaint of the scene that wouldn’t have in 2021?

Do you perhaps have any VFX in your project?

Yeah, there are some shadergraph things that we have as well. I’m pretty sure the problem here is that the Scene repaint is constantly being called - I have a water shader that used to (in unity 2021) only ever update when I was actually moving the scene camera. But now my scene view is constantly repainting, even when I’m not looking at the scene view or even have the Unity Editor maximized!

Having to hear my fan all the time as if I’m running the game is really troublesome for me personally so if anyone knows how to make this stop that’d be great. Or if there’s something I could have screwed up in an editor window script that’s unknowingly causing this

I looked into it more and decided to debug stack traces for all repaints. It turns out the little “Tools” overlay in the scene view was causing hundreds of repaints per second for whatever reason. When I hide this window, my fan stops spinning up as much.

Wahoo!

4 Likes

Just FYI under Project Settings => General you can also modify the Interaction Mode.

This lets you both unthrottle (definitely not recommended) or choose a custom update rate to - if you really have to - force the editor to render and update even below 30 fps. This however may come with more sluggish input, specifically in the scene view.

1 Like

I JUST had the exact same issue! Turning it off bopped the CPU usage back down.

2 Likes

It’s under Preferences, not Project Settings. Thanks for the answer anyway.