MSDLF
(Masol)
December 19, 2020, 6:00pm
#1
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.
v_rsion
(v_rsion)
December 19, 2020, 10:22pm
#4
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.
MSDLF
(Masol)
December 19, 2020, 11:08pm
#5
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)
v_rsion
(v_rsion)
December 20, 2020, 12:36pm
#7
I don’t seem to have any lag. But try looking around for a little while see if you find something suspicious.
misesunny
(Sunny)
December 20, 2020, 1:57pm
#8
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!
iGottic
(iGottic)
December 20, 2020, 3:41pm
#9
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?
MSDLF
(Masol)
December 20, 2020, 5:24pm
#10
Is .DescendantAdded:Connect friendly?
iGottic
(iGottic)
December 20, 2020, 5:25pm
#11
It wouldn’t be from one thing like that.
MSDLF
(Masol)
December 21, 2020, 12:33am
#12
Join and I will mention the stats too ingame
After 2 rounds untracked memory goes to near 0