Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Reducing Lag via Scripting

Asked by 10 years ago

I dont want anyone to write massive blocks code for me, I am wondering if there is a way to speed up gameplay in your game via reducing lag?

Mabey there is a way to remove all parts that arnt in anyone's line of view?

1 answer

Log in to vote
3
Answered by 10 years ago

Yes, there are certain ways you can reduce lag via scripting, but there is no general answer. It is very specific to your game and implementation. The best answer I can give you in a general sense is to turn on Workspace.StreamingEnabled, which will stream parts to the client instead of displaying them all at once.

ROBLOX already hides parts that aren't seen, as far as I know. They will also disable rendering parts which are far away if the game is running slowly.

1
Ok then, thanks. Is there anything you can go with "Debris"? ConnorVIII 448 — 10y
0
The Debris service is more for dealing with things like bullets and explosions debris. It will remove an object after a set time if you use the AddItem method, or it will remove older objects if the MaxItems property is exceeded. User#11893 186 — 10y
2
kden thx bra ConnorVIII 448 — 10y
Ad

Answer this question