I have entered my project today at the surprise of having a very low framerate just by being in my place’s editor in Studio. Initially, I thought it was lag coming from the Workspace or some faulty plugin, but then found out that a small amount of CanvasGroups cause a very high amount of lag in Studio.
This is a RenderJob duration in the place with around 10 CanvasGroups:
Having around half of the CanvasGroups in my game as originally manages to boost up my FPS to 30, however I’m quite concerned since just yesterday my Studio was at 60FPS regardless of how many CanvasGroups were in the game.
I’m utterly clueless as to why this is happening, if it’s a recent update or what not, but I would hope there is a solution to this as it would be rather painful having to redo a lot of the UI because of whatever change is causing the lag. Thanks!
Hello, it is possible that the framerate is being affected by the CanvasGroups in your game as it can impact your game’s performance. Even if it is not directly related to the CanvasGroups, it may be useful to contact a Roblox technician to check your issue as soon as possible. You could try limiting the use of CanvasGroups. Have a good day and good luck with the rest of your game development.
it is possible that the framerate is being affected by the CanvasGroups in your game as it can impact your game’s performance.
I am aware, that’s the strange thing… As I have mentioned, absolutely unchanged CanvasGroups which were smoothly running at 60FPS have started to lag very bad. It is quite inconvenient because I happen to use UI animations and turning larger amounts of UI transparent at once a lot.
it may be useful to contact a Roblox technician to check your issue as soon as possible.
Though yes, I hope any developer at Roblox responsible for the engine would see this and have any idea as to why this is happening.
Thanks for replying!
UPDATE: I have found the culprit of the problem!
However the reason it occurs is one that is beyond my comprehension:
I have to say I was going to write around 3 different versions of why this framerate drop issue is caused, but the final version is even more confusing than any of the previous ones.
For some reason, if you have anything similar to specifically the UI tree below:
It causes the framerate drop. BUT! Here’s the weird part: If you remove the UIListLayout here and then do Ctrl+Z to Undo the change, The framerate drop does not even occur unless you cut out the UI element that is its parent and paste it back where it was.
This is demonstrated below:
Also: strangely enough, removing specific TextLabels in the UIListLayout also removes the framerate drop. I initially thought it was a specific number of TextLabels after which the lag would not occur, however it seems when removing TextLabels its completely random when the FPS drop alleviates.
I am completely lost on what in this would cause the lag, and this has never occurred before in spite of the project where this has occurred I have been working on daily for the past 3 months, so I am daring to say: this happens to be some sort of Engine bug.
I’m not certain however if others will also experience this on their Studio applications or desktops as well, so I will attach the test place for this lag occurring below:
If you are reading this post: Please, try to test if this lag occurs on your machine/Studio as well, and post about it here if it does. If anybody has any other suggestions or ideas as on how this lag issue is caused, please post your thoughts here. Thanks!
Update: I deleted a CavnasGroup and re-duplicated it and now I cannot replicate the issue? Try it out, I’m not sure if the same thing happens for you as well
I guess this may be because my computer does not have very good specs, however not bad either, so this can be pretty painful for a good majority of users on Roblox if this replicates over to in-game.
I deleted a CavnasGroup and re-duplicated it and now I cannot replicate the issue?
Yeah… A similar thing happened in the demonstration video when I removed the UIListLayout and placed it back but with Undo; The framerate issue did not occur. So I feel confident this performance issue happens from Roblox’s side of things.
Can you try to publish the place to Roblox and see if any frame drops occur?
Furthermore, this should be moved into #bug-reports, I’m pretty sure you have to send a message to @Bug-Support get it moved or to create a new topic in that area.
UPDATE: I have found a solution to reduce the severe framerate drops.
At the UIListLayout TextLabel list from where this issue was mostly originating, it appears that if the Wraps property is set to true or Horizontal/VerticalFlex properties are changed from None to something else, then the framerate goes back to 60FPS no problem.
I still don’t understand why exactly this issue persisted in the first place, but currently I’ll be glad if Studio won’t run at 12FPS when I am trying to edit something in my project!