So, I have a pretty big One Piece RPG game, the problem is that when I launch it I start to lag, and even when I don’t launch it, there are also freezes, what would you advise me to do to remove this?
3 Likes
I’d recommend making sure there’s not a lot of models and parts together. Make some unions if you can to reduce the amount of parts. Especially with your bigger models.
2 Likes
Actually, making unions doesn’t optimize a game at all. It degrades its performance.
2 Likes
Hello, @Dssall2, game optimization is a crucial thing when it comes to performance and it is best to take it into account during development and not after. I will try to be brief and give you some tips:
Building:
- Try to reduce part and triangle count as much as possible. Avoid unions, as they can create unnecessary triangles and incorrect hitboxes, and make these models in a third party program like Blender, which is more efficient when it comes to triangle count (for example, you can use the
Decimate
modifier in Blender to reduce it); - Make sure parts are anchored, except the ones you need unanchored;
- Set
CanCollide
andCanTouch
properties to false for parts that don’t need them; - If your game contains MeshParts, set the
RenderFidelity
property to Performance and theCollisionFidelity
property to Box or Hull unless it really downgrades the quality of the mesh.
Scripting:
- Try to optimize your scripts as much as possible;
- Check for memory leak problems (developer console);
- Check for viruses in your scripts (in free models).
There are probably more tips you should get regarding scripting optimization, but I am still learning scripting and not yet so confident on this field.
1 Like