Any good and effective way to significantly reduce lag in my game?

I am only about 1/4 of the way done with the game and already, I am experiencing lag. I am on a pretty decent computer too. 99 percent of things in here are parts.

Game: Jungle - Roblox
To start moving hit “c” and then “x”

Have you tried out StreamingEnabled yet?

Whats that? Never heard of it…

Here’s the wiki article:

Essentially, it loads the parts in the game while the game is played.

1 Like

Btw I have made a way to crouch and crawl for mobile so you can do it now.

Just going to list off things that cause high lag.

  • Blocks use Meshes to reduce lag

  • Extra Script Functions

More info down below.

2 Likes

Hey RapidBoss08!

A quick analysis of the on surface detail of your game!

Analysis:

  • It contains 98,145 parts
  • Although you claim they’re all parts, I am left dubious with this picture.

https://i.gyazo.com/243ce13e9853d54fec1768d1aee467e1.png
It clearly feels like CSG due to the shading, sharpness, and poor hitboxes.

Solution

  • Try dispersing your trees more some the player doesn’t have to render so many triangles in one setting. I do agree the streaming enabled will help with the rendering issue.
  • Use your triangles properly by picking up a 3d modeling program like blender wouldn’t hurt, although you’re definitely sacrificing the hitboxes.
  • Run a duplicate checker and a collisions visualizer to see if you have any mistakes and the physical hitboxes of any unioned/mesh parts you have now or intend to add in the future.

[DISCLAIMER: Faulty scripting is far more harsh than faulty building, consider how optimized your scripts are first. This might solve any latency issues all together]

Plugins:

Goodluck.

8 Likes