Packages and BillboardGui scaling performance

Description

There is a significant FPS drop in Roblox Studio when:

  • a Package contains a BillboardGui with scalar size, and
  • the BillboardGui is visible and dynamically resizes (ie. as the camera moves towards/away the BillboardGui Adornee)

Repro Steps

From a new place file:

  1. Insert a Model with a Part within it.
  2. Insert a BillboardGui into the Model. Set its Size to any scalar amount, such as {1, 0}, {1, 0} or UDim2.new(1, 0, 1, 0)
  3. Set the PrimaryPart of the Model to the Part
  4. Convert the Model into a package - there should be a PackageLink inside it now.
  5. Move the camera such that the BillboardGui should dynamically resize (forward/back, orbit, etc)
  6. (Optional) To exacerbate the problem, duplicate the BillboardGui about 8-12 times, OR add GuiObjects to the BillboardGui with a scalar Size.

Example place: PackageBillboardGuiBug.rbxl (20.2 KB) – Read the “REPRO STEPS” ModuleScript in the Workpace.

System Specs

  • CPU: Intel(R) Core™ i7-7700 CPU @ 3.60GHz
  • Memory: 16.0 GB
  • GPU: NVIDIA GeForce GTX 1060 3GB
  • All drivers are up-to-date.

Screenshot

What is shown: Roblox Studio open with the MicroProfiler running (Ctrl+F6). The “LegacyLock” label is added to the bottom-right graph.
What I did: Following the repro steps above, this screenshot was taken immediately after pausing the MicroProfiler (Ctrl+P). (I moved the camera forwards/away from the Model with the BillboardGuis in it using the W and S keys.)

Misc Details

  • I believe this issue has been happening for a while – at least three months, although I reckon this has been happening as early as the release of packages v1. I remember working with packages with this kind of performance issue for a long while now.
  • My guess is the problem is related to the PackageLink diff-ing the BillboardGui (and any GuiObject within it) whose AbsoluteSize changes as the camera moves toward/away from it. Because these properties are changing, it could be the case that the PackageLink may be doing a lot of unnecessary work.

Let me know if more details are needed or if you’re having trouble reproducing the problem.

3 Likes

Hi @Ozzypig, can you restart Studio and try it again? The issue should have been addressed. Thanks!

1 Like

Checked again, issue seems to have been fixed :slight_smile:

1 Like

Hi, I know this post was marked as solve but this issue still seems to be affecting studio.
I ran into this same issue in my one of my older places with packages that contained BillboardsGui’s, after reading through this thread I went and republished the place and attempted to check if the FPS would improve.

Unfortunately I am still getting the same FPS drops.

Here’s studio with packages that contain BillboardGui’s:

Here’s studio without packages that contain BillboardGui’s:

1 Like

Hey, did you restart your studio? We just released the fix recently. You need restart studio to get the fix. If it is a teamcreate place, you have to ask all your teammates leave the place, restart studio and then wait for 5 minutes before re-enter the place. Please let me know if the issue still happens. Thanks!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.