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?
will using viewportframes for an inventory cause lag?
1 answer
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.
2 comments
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.
Yes you would probably be fine doing that. Although, I would rotate the camera around the part, not the rotate the part :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
no
^wrong
Personally not received any lag from using them for inventories.