Jump to content

[NEED HELP (again)] Switch Statement delay? [:)]


Recommended Posts

Posted

4bdaa886cb834416e68a77c8f25f5f3e.png

 

My onLoop() returns 10, 50 and i don't have any sleeps more than around 500ms. yet not matter what i do there is a delay between cooking and banking? everything else is amazingly fast and works perfectly. its just i wonder if there is a reason why it is taking 2-4 secs to start the banking state?

Posted

4bdaa886cb834416e68a77c8f25f5f3e.png

 

My onLoop() returns 10, 50 and i don't have any sleeps more than around 500ms. yet not matter what i do there is a delay between cooking and banking? everything else is amazingly fast and works perfectly. its just i wonder if there is a reason why it is taking 2-4 secs to start the banking state?

0.0

I will ignore the questionable if statements for a moment and say:

I think i heard somewhere it has a built in minimum sleep.

  • Like 1
Posted

4bdaa886cb834416e68a77c8f25f5f3e.png

My onLoop() returns 10, 50 and i don't have any sleeps more than around 500ms. yet not matter what i do there is a delay between cooking and banking? everything else is amazingly fast and works perfectly. its just i wonder if there is a reason why it is taking 2-4 secs to start the banking state?

I can tell you the delay is not in getState. It's in one of your other methods.

  • Like 1
Posted

0.0

I will ignore the questionable if statements for a moment and say:

I think i heard somewhere it has a built in minimum sleep.

 

My first script for a long time at the moment the if statements do what i need to test but of course i am open to suggestions.

And ah right fair enough thanks for the reply!

I can tell you the delay is not in getState. It's in one of your other methods.

 

Ah right :3 ill have to go through and debug everything. thanks for reply :)

Posted (edited)

pls nullcheck the bank booth tho

 

unless isVisible has a built in null check which i didnt kno about

 

c:

 

Lmao something so simply i didn't check :3. even tho i have been thinking to null check everything on other things i don't notice there D: thank you aha.

Edited by Manifesto

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...