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
 

Re: Wait(1) taking 2.04 seconds

Previous Thread :: Next Thread 
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
02 May 2016 02:50 PM
This is causing place traffic to pretty much plummet, so any help is appreciated

First off:

t=tick() wait(1) print(tick()-t)
>2.something

This is a couple of gyazo screen shots of dev console:

https://gyazo.com/8479b5f9ad867c54e49c823e42f87797
https://gyazo.com/a84d8c3870239f8450bc59ced41d607e
https://gyazo.com/a84d8c3870239f8450bc59ced41d607e
https://gyazo.com/936bc3f4823175473987709a5aee60d0


Looks fairly normal to me, any ideas


Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
02 May 2016 02:51 PM
My best guess is your frame-rate.


Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
02 May 2016 02:57 PM
Sounds like anther process is taking a ridiculous amount of time

spawn(function()
local tock = tick()
while true do
repeat until tick()-tock > 3
tock = tock+3
end
end)
t=tick() wait(1) print(tick()-t)


prints 3.something
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
02 May 2016 03:25 PM
Frame rate was fine. 60-59.


Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
02 May 2016 03:46 PM
Try

print(wait(1))

Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
02 May 2016 05:01 PM
+Lupine that just prints true or false.


Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
02 May 2016 05:01 PM
Well, always true, as far as I know.


Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
02 May 2016 05:03 PM
@notwal

wait(n) returns the time elapsed when it was active.
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
03 May 2016 01:39 AM
It was just that server I think. I left a studio test server up for 10 hours with 6 players and the same thing didn't happen. During it though, Roblox went down for a short bit
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