|
| 30 Nov 2016 09:03 PM |
I have looked this up many times, yet i've never seen a fully correct answer. I finally found out what causes lag throughout my experience developing.
A common misconception is that unions and too many parts cause the lag, however while they CAN add lag, 99.99% of the time they are not the problem. Computers can handle ROBLOX parts and unions along with other assets such as decals amazingly.
So what does add lag? The answer is simple: Unanchored parts, and Scripts. I do not mean amazingly made/effective scripts. It is the horribly made, usually stolen script that may have originated from a free model that add lag. A game with 400 scripts will usually lag more than a game with 20 scripts. Your scripts are work horses -- make sure you have less that are more effective, and not too a lot that are not effective. Make sure there are no unused scripts - these can add lag as well. There are also some other aspects that can cause lag such as particles and effects such as fire and smoke, make sure you don't over use them. Also note that red is usually the hardest color for computers to work with, and it puts more strain on the graphics card.
Q: How do you fix this problem?
A: Try to use as few scripts as possible, and make sure your scrips are effective. Try to make functions that you can use over and over again instead of repeating the same lines of code, and try to minimize lines of code. It is best to not use free modeled scripts, and it is best that your scripts are also made exclusively to your own game so they can all work together as one single game engine, this is also very effective. There is also no such thing as an anti lag script.
Thanks for reading - Paniel |
|
|
| Report Abuse |
|
|
| 30 Nov 2016 09:12 PM |
| Thanks, this question has finally been answered after so long. |
|
|
| Report Abuse |
|
spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 30 Nov 2016 10:52 PM |
"try to use less scripts as possible"
Use module scripts lol.
#Code print(print(print(print(print(print(print()))))))) |
|
|
| Report Abuse |
|