How do I reduce lag in my race game?

Players have reported lag in my game. when game has 8-12 players or so.

I have efficient code already. I disconnected and deep checked all the codes.

Server memory usage is around 2GB
Client is 400 MB.

What else can I do? I added Wait() to not overcrowd processing.

1 Like

Check What The Main Script That Cause It
(On Client)

: )

If you using free model cars, there’s most likely a lot of garbage scripts within the cars.

If you have an intense amount of “Realism Graphics”, I suggest turning them down a tad bit. Could I possibly get a link to the game? Unless it’s still being developed or some sort.

I have some code that uses

game.Workspace.DescendantAdded:Connect … etc event.

https://www.roblox.com/games/4519631442/Bloxy-Roads
That’s the game.

2 Likes

could you go in game and screenshot the F9 Scripts Menu and the F9 Server Memory (Make sure you also include untracked memory in the screenshot)

I don’t seem to have any lag. But try looking around for a little while see if you find something suspicious.

I believe you can make a low quality option that set’s every parts material to smooth plastic which should reduce lag by a bit. Other than that I do not know a way to reduce lag other than the things you have already done.
Don’t forget to mark comments as answer if they helped you!

Yea, that’s not true if you have those stats.

wait() is not exactly a friendly bit of code. What scripts take the most memory, according to performance stats?

Is .DescendantAdded:Connect friendly?

It wouldn’t be from one thing like that.


Join and I will mention the stats too ingame

After 2 rounds untracked memory goes to near 0