How would i go about increasing performance in my game?

Hey, try making a Render Distance script. It’s code that goes inside of a LocalScript and it loads items depending on how close the player is. This prevents lag tremendously. I recommend looking up Render Distancing for ROBLOX on YouTube. There are sadly very few videos about this kind of thing, but the few videos that are there can be super helpful.

a render distance script wont help, as the tank model i have is the problem, i would need a way to save performance while keeping most of the detail

I recently found a guy’s comment that might help, so I’m pasting it here.

If you’re experiencing FPS issues in your game despite having taken steps to optimize it, there are a few more things you can try:

  1. Reduce the number of parts and polygons in your game. This can be done by removing unnecessary parts and simplifying complex meshes.
  2. Use textures instead of high-poly meshes wherever possible. This will reduce the number of polygons in your game and improve performance.
  3. Use LOD (Level of Detail) models to reduce the number of polygons in objects that are far away from the player. This will help improve performance by reducing the number of polygons that need to be rendered at any given time.
  4. Optimize your scripts by reducing the number of unnecessary loops and functions. You can also use coroutine.yield() to pause a script when it’s not needed, which will improve performance.
  5. Test your game on different devices to see if the FPS issue is specific to your computer or if it’s a problem with the game itself. You can also try lowering the graphics settings in your game to see if that improves performance.
  6. Consider using a third-party optimization tool such as Roactify or Streamline to further optimize your game.

I hope these suggestions help you improve the performance of your game. Good luck!

1 Like

could you provide links for Roactify or Streamline since i cant seem to find anything online

Um, I’ll try to. I haven’t seen any either.

1 Like

Update, i have tested around a bit more and i only seem to get the fps issue in the main game, if i move to a baseplate i have 50+ fps, so its either a proplem with my local script which handels the cam and UI of the tank or a combination of the Terrain,Trees/Bushes and the tank.
Edit: After some more testing i think that disabling the vehicle script mostly fixes the fps, if anybody wants to take a look and maybe find some issues, here you go: (reply)

1 Like

Cant seem to paste anything so i made it a .txt
script.txt (4.8 KB)

2 Likes

I took a quick look at it and i think its have to deal with the RunService.Stepped, like even if you put just a print(“test”) in it, your game will lag, but i might be wrong honestly, however if you play your game in Run Mode on studio and it doesn’t lag, then probably what i said in the beginning is the problem.

1 Like

i commented the RunService part out and it does seem to help/fix the fps, now i just need to find something that does the same thing but that doesnt drop the fps

1 Like