SO I was thinking of making a list of the floors in my elevator game and I have about 70 and each of the floors in the gui will have a viewportframe preview of the floor so each floor as an average of 20-80 parts is it possible to fit that in a viewportframe where there are at least 70 of them and will it lag
Oh and the viewportframes will be in a scrolling frame so is it possibel to make it so that the viewportframes are only active if the player can view it from the scrolling frame
You could utilize the Camera | Documentation - Roblox Creator Hub function on various points on the viewports (assuming these are in surface GUIs) then take all of the points that are within the player’s screen and test those with Camera | Documentation - Roblox Creator Hub. It’s not perfect but it should help you to determine if it’s visible within their screen.
Static viewportframes (meaning viewportframes where the contained parts do not update) are stored as textures, so having 70 static viewportframes should be the same performance as having 70 decals.