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 » Scripters
Home Search
 

Is this causing players to crash?

Previous Thread :: Next Thread 
TitanicKungfubot is not online. TitanicKungfubot
Joined: 25 Dec 2016
Total Posts: 3482
30 Jul 2017 03:38 PM
There are a lot of buildings in my game, and presently in order to keep track of where the client is in relation to them I've been using loops

I've noticed lag spikes occurring spontaneously in my game, can I tie this to them?

They're structured like this

script.Parent.BindableEvent.Event:Connect(function()
local function recursiveThread()
--Stuff to check where the client is or something
end
recursiveThread()
end)

And then I have some statements to differentiate one thread from another based on what fired the event

Does having a lot of these cause lag? There's like one per building.


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
30 Jul 2017 03:44 PM
Magnitude checks are expensive, what exactly are the purposes behind the bindable events and functions?
Report Abuse
TitanicKungfubot is not online. TitanicKungfubot
Joined: 25 Dec 2016
Total Posts: 3482
30 Jul 2017 03:49 PM
Cause I figured if excessive use of coroutines and spawn would cause latency that bindableevents would be a work around :P


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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