How to fix Lag with ViewportFrames

So I have a script that creates a ViewportFrame with different units, whenever one is added to a folder, the problem is when those ViewportFrames are created not only does the FPS of the client decrease drastically so does the FPS of the ViewportFrames, this happens with as little as 10 ViewportFrames. I have played games like Anime Defenders which don’t have any problems with large amount of units in the inventory. Is there any fix for this?

2 Likes