[IN-26965, UUM-26990]Game View UI eating x10 more CPU

Update, upvote: Unity Issue Tracker - Performance degrades when profiling in newer Editor versions


I upgraded my project from 2021 to 2023 to use MPPM package. Something weird is happening with editor. After 15-30 mins of using editor and going to play mode few times performance drops drastically (from 150 fps in first playmode to 10 fps after 30mins). Could Game View be finally upgraded to UI Toolkit to remove this massive 16kB alloc every frame???

Play profiler:

Editor profiler:

GameView profiler (from the one above):

DoToolbarGUI takes 10ms of cpu, how’s that possible?

3 Likes

Same story with profiler, these hiccups make it unusable and I don’t have a bad cpu (i9 9900k).

I’ve learned how to redirect methods and I was right. Hiding GameView toolbar, background (that’s invisible anyway), tabs increases performance by 90%, cpu usage goes from 10ms to 1ms.

Also tested Unity 2021 and somehow it only takes 1ms there. My script further improves it to 0.3ms.

Left optimized, right default Unity 2023.

Video with 90 to 600 fps here: x.com

There are even more regressions, prefab selected and W pressed in playmode to move character. Somehow whole inspector gets refreshed and fps drops to 5??

I would like to double down on this issue.

This is a really bad regression. Play testing in a minimal 2D project is sometimes reaching sub 5 frames per second.
Currently having the exact same issue as the original poster.

1 Like

Reported it as a bug few days ago, wasn’t confirm by Unity yet: IN-26965.

1 Like

the more i go in game mode the less i got fps every time
i have to reopen unity every time

I’m glad others are finding and bringing this issue up, – my editor has been slowing down to a crawl and it’s literally a blank 2D project with 3 square sprites, and one 64x72 pixel art character (no animations even in yet) haha.

It’s the same issue here too – just reproduced by having Unity open for around 30mins+ and entering/exiting playmode.
At first, the GameView stats window shows 200+ FPS, and slowly goes down to around 10-20 FPS.

Bug report still not reviewed…

@LeonhardP poked the QA team for ya about this

5 Likes

Thanks, looks it got confirmed https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-26990

1 Like

2023.1 editor is way slower than 2021.

Forgot to mention to upvote the issue or we’ll have to wait few years before it gets fixed :slight_smile:

1 Like

Today’s your lucky day, my vote counter is full haha! revenge! Oh wait, you can only give one point now. Well… anything else you need votes on?

3 Likes

Err…?
I’ve been using Unity and voting on their issue tracker for years… but now their login process never registers me as logged-in, so I can’t vote on the issue lol :frowning:

Status: Fixed and currently awaits internal confirmation.

Hopefully we will get better performance than <2022 if these small gc allocations from GUI every frame get fixed.

1 Like

It’s that magic touch.
I have 8 votes left, anyone? anyone?

It says bug fixed in “2023.2.0a8” but it’s still pretty bad, especially allocation:

I’ll get 2021 numbers soon…

1 Like

2021:


Higher allocation but somehow only 1.20ms vs 2.77ms in 2023

1 Like

How about 247 ms in Unity 2022.3.4f1? :slight_smile: