I’m doing some optimizations on my game and they’re going really well but this one thing called “UpdateUILayouts” starts to take really long in the MicroProfiler whenever I rotate my camera around (it seems)
No, even after disabling it, it persisted. I tried looking in another game that has a similar minimap, The Wild West, and they don’t have that problem, and I’ve fixed everything I’ve thought could be a potential problem since making this point, but it still persists. I just need to know what exactly “UpdateUILayouts” is / what it’s caused by
Make sure all your BillboardGuis aren’t set to infinite max distance, only set them to what they need to be
I had left a lot of BillboardGuis on infinite MaxDistance (because I’d use magnitude checks to disable and enable the UI in them) and disable/enable the BillboardUI itself.
What’s weird though is that Roblox still renders / draws BillboardGuis even when they’re disabled
So to get rid of the problem, again, make sure your BillboardGuis are not set to infinite max distance unless absolutely needed
My game is a tycoon and I use quite a bit of BillboardGuis to display information about items.
I made the connection between this issue and BillboardGuis early on and did what you said, however it’s still causing MP spikes. I have MaxDistance set around 50.
What’s weird though is that Roblox still renders / draws BillboardGuis even when they’re disabled
That is really weird behavior. This issue started a couple months ago, possibly a bad Roblox update?
Were you ever able to come across a solution to this? Currently experiencing this in my game as well. As player count goes up, so does the lag. Here’s a shot from the MicroProfiler.