Jump to content

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


Fruity

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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