How would I go about optimizing my game?

A while ago, I made a game called Kaboom Kompetition where you destroy the map with a rocket launcher and timebomb, but as we expected, this comes with a toll of high lag when playing the game. We’ve looked into optimizations such as anchoring inactive parts, but the game is still quite laggy while trying to play on some of the high-part maps such as Roblox HQ (can be found in the toolbox) and HappyNeighborhood (play the game to see)

The main issues are with physics, all scripts work just fine and efficiently.

So I’m turning to the devforum for suggestions on how to further optimize my game. If you have any suggestions, feel free to reply.

I’m looking for modules and libraries along with built-in methods of optimization. Anything helps really.

2 Likes

Optimization Tips for Roblox Game:

  1. Reduce Part Count: Use Union, Negate, or meshes.
  2. Optimize Physics: Use lower-resolution collisions and anchor inactive parts.
  3. Efficient Destruction: Use Debris service and object pooling.
  4. Optimize Scripts: Avoid frequent loops, profile, and optimize scripts.
  5. Level of Detail (LOD): Use LOD models based on distance.
  6. Network Optimization: Reduce network traffic and physics updates.

Modules/Libraries:

  • Rojo: For better project management.
  • DataStore: Efficient data handling.
  • FastCast: Advanced casting library.

Built-In Methods:

  • SetAttribute/GetAttribute: Efficient data storage.
  • :Destroy() vs. :Remove(): Clean up objects completely.
  • :SetNetworkOwnership(): Improve physics performance.
2 Likes