How to fix lag with WorldModels

So I have ViewportFrames with WorldModels which contains problem is that when I create those ViewportFrames the client’s FPS drops a lot when the ViewportFrames aren’t visible, however as soon as they become visible the FPS goes back to normal:

1 Like

Make sure to disable the ScreenGUI when you close out. I believe that should help.

1 Like

The ScreenGUI is closed, that’s the problem when it’s closed the FPS goes down a lot, but as soon as they get rendered/the player sees the WorldModel the FPS is fine

1- go to workspace
2- go to the properties of the workspace
3- Turn off streamingEnable, i believe that should help

Nope :sob: . When I loaded in my FPS was at 22 :skull:

1 Like

on the same problem someone pls answer

Why not just create them every time you open the Screengui and destroy them when you close out.

Umm sorry about being so late, the problem is that the ViewportModels are being created, but not viewed by the player, so whenever they actually being visible to the player it should remove the lag. You could also just create those ViewportFrames whenever the player can see them e.g. when the player opens the frame for the viewportframes

2 Likes

oh so like create a new viewport with worldmodel each time it opens? will that help bc rn im having problems when theres many worldmodels in the background and it lowers fps. I tried parenting it to like replicated storage but it didnt really reduce fps lag

ViewportFrames are laggy anyways if too many, but in this case they were causing lag because they were never “seen” by the player. I don’t really know why this causes lag. Roblox needs to update ViewportFrames asap

so like i reworked my old system which was rlly messy, it would parent the viewport to replicated storage when not being used and then parented back to the ui which is really bad since the character has local scripts. So I like did the route where you just clone the gui every time it opens with the viewport and stuff and i initialized it every time, its a lot less laggier and no fps being wasted as it destroys when closing.

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