UI layout drops frames like crazy

Hello

So I went along with my usual UI building and use a few layout components, like Horizontal & Vertical and when I got to a certain point, at around maybe 5 or 6 vertical layouts, they start to drop frames like crazy. As an experiment, I opened up the same project in 2017.1 and there I easily get around 60-80 FPS. But in 2017.2 beta, I get around 20-30 FPS.

I did a deep profile on the subject and turns out LayoutRebuilder.Rebuild() takes up around 67%, and layout as a whole 89%. Keep in mind, this is when nothing about the layout has changed.

Did I miss some big change that made these unusable or is this a bug? I can’t find anything about it either, which I find odd.

It seems you found a regression in 2017.2, thus I recommend to submit a bug-report following the advice in this document.

Using the bug-reporter seems to be an important step, because it makes sure the report is in Unity Technologies bug-tracking pipeline and has to be processed at some point. Using the forum is often used to add to a little more attention to a specific case, but does not replace submitting a bug-report.

It’s from advantage to attach a project to the bug-report that UT can use to reproduce the issue and test their fix against. The easier an issue can be reproduced by QA, the more likely it is to get forwarded to a developer, who might or might not work on a bug-fix for that at some point.

After you submitted the bug-report, you receive a confirmation email with a Case number. UT often asks us to post the Case number in the forum thread, which allows them to find that bug-report if they look at your post.

Following these steps will increase the chance that UT is looking at your issue tremendously.

I ended up submitting a bug report. And for the Unity people, the case number is 949860, in case you want to take a look at it.

I also did some further investigation and turns out that the problem is only present in the editor and not in the build of the game.

2 Likes

This is a major issue… totally kills frame-rate! Thanks for reporting @Hertzole :wink:

My UI that was working perfectly before has now dropped the frame-rate from 90 FPS+ to 30+ FPS when this issue occurs.

Not yet tested in a build to see if OK, will do so today.

The bug has been fixed in our repository and will probably be in a patch release. You can follow the process here:

3 Likes