[QUESTION] How should I reduce the lag in my game?

My game currently has 22k+ parts and it is starting to cause lag for players with older devices. The game is an entire city, the majority of the buildings are filled and have things to do in them, so they’re all essential. How should I go about creating less lag??

2 Likes

Try to reduce the amount of unions and meshes in the overall build. If you see any unnecessary parts, you should remove those too.

3 Likes

Turn on Streaming. It cut my lag around by half.

2 Likes

To reduce the lag just use less part and dont use free models easy solution

1 Like

Parts that will never be collided with should not be able to be collideable to reduce the physics rendering, thus making your game a tiny margin bit faster :slight_smile: Just like @Musketfall said, using less unions does reduce lag, but if applicable, turn unions into meshes and lower the triangle counts!!

To troubleshoot with greater accuracy, try using the microprofiler and the developer console to find where your memory is being consumed the most. This article should be very useful: https://developer.roblox.com/en-us/articles/Improving-Performance

4 Likes

Import models into blender to optimize. Don’t use free models. Try to reduce the triangle count using blender.

4 Likes