Guide: Reducing Lag
#1
On Buildism, lag is the term used when the game runs noticeably slower than usual. These things can cause lag, so reducing one or more of them in your game can make it run much better.
  • Moving Parts - Having a lot of parts moving at once means more work for the physics engine.
  • Overlapping Parts - This usually doesn't cause problems, but for every two parts that are overlapping, a "pair" between them is created (even if they are fixed.) It has to go through all of the pairs during every frame. If there are thousands of pairs in the game, this can take too long.
  • Drawing Lots of Parts - More than a few thousand parts visible at the same time.
  • Inefficient Scripts - Try not to use too many scripts with infinite loops. Always use a sleep() in these loops, and increasing the sleep time can help if you have lag problems.

Holding down F7 shows you some information that may be useful for optimizing a game.
Reply


Messages In This Thread
Guide: Reducing Lag - by Jacob__mybb_import1 - 05-24-2011, 02:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)