Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

will using viewportframes for an inventory cause lag?

Asked by
MHaven1 159
4 years ago

im planning on making a inventory using viewportframes to showcase the items, each item can have upto 100 parts will it cause alot of lag if i have 50 items in the inventory?

0
no cherrythetree 130 — 4y
0
^wrong Psudar 882 — 4y
0
Personally not received any lag from using them for inventories. despicablejack2005 83 — 4y

1 answer

Log in to vote
1
Answered by
Psudar 882 Moderation Voter
4 years ago

According to the wiki (https://developer.roblox.com/en-us/articles/viewportframe-gui)

Moving a viewport’s physical children is less performant than keeping them static. If you need to update the view, it’s better to move the camera than move the parts/models.

Basically meaning, if youre changing the parts a lot it may cause lag.

A viewport frame is not designed for rendering a large number of complex objects — it may be slow if you put too many objects inside.

This meaning, lots of parts may equal lots of lag.

Through actual experience, i havent notice much lag with many viewports, but having lots of parts i've noticed some issues here and there.

1
i want to make a inventory system where in the main inventory system all the items in the viewportframe dont move at all but once you select 1 item that item will spin in circle so i guess if im moving 1 item at a time it shouldnt lag. MHaven1 159 — 4y
0
Yes you would probably be fine doing that. Although, I would rotate the camera around the part, not the rotate the part :) Psudar 882 — 4y
Ad

Answer this question