generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: This is what causes lag in games.

Previous Thread :: Next Thread 
panieldarks is not online. panieldarks
Joined: 12 Aug 2015
Total Posts: 247
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
Jupiterism is not online. Jupiterism
Joined: 20 Sep 2014
Total Posts: 2072
30 Nov 2016 09:12 PM
Thanks, this question has finally been answered after so long.
Report Abuse
spinywind is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image