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 » Scripting Helpers
Home Search
 

Re: Anti-lag?

Previous Thread :: Next Thread 
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Sep 2012 12:59 PM
mx = game.Debris
mx2 = game.Debris.MaxItems

if (mx.MaxItems > 80,000) then
mx.MaxItems = mx2*.75
end

Why does this reduce lag? It doesn't even loop to continue updating...
Also, are there any other techniques for reducing server-side lag?
I get the type of lag where the following would happen:


while true do
local time = tick()
wait(1)
local difference = tick() - time
if difference > 1.1 then
print(difference)
end
end

So the server scripts have elongated wait() periods, but player-side there isn't any noticeable movement or graphics lag.
Does "local runService = game:service("RunService");" help make server wait time more constant?
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
26 Sep 2012 01:06 PM
Some people just remove all manual joints.
So, if everything is anchored, you won't have any problems, but if something is welded to an anchored part, but that is unanchored, than problems will begin.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Sep 2012 01:09 PM
That's exactly my situation, veerstrong
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Sep 2012 03:14 PM
I mean, I have unanchored parts welded to anchored parts, so I can't do that
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
28 Sep 2012 09:04 PM
Let's try this again..
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
28 Sep 2012 09:05 PM
Welcome to XxChopSlaperxX's copy and paste log. In order for him to help you, please put your current version of the script you're using. He'll get back to you in less 5 minutes
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
28 Sep 2012 09:53 PM
Code's already there..
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
28 Sep 2012 10:32 PM
To reduce lag use meshes for guns instead of a bricks.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
28 Sep 2012 11:17 PM
Thanks, but I don't have any guns in my place
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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