Fruity Posted April 1, 2015 Posted April 1, 2015 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?
Isolate Posted April 1, 2015 Posted April 1, 2015 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. 1
Mysteryy Posted April 1, 2015 Posted April 1, 2015 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. 1
Fruity Posted April 1, 2015 Author Posted April 1, 2015 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
Apaec Posted April 1, 2015 Posted April 1, 2015 pls nullcheck the bank booth tho unless isVisible has a built in null check which i didnt kno about c: 1
Fruity Posted April 1, 2015 Author Posted April 1, 2015 (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 April 1, 2015 by Manifesto
Fruity Posted April 1, 2015 Author Posted April 1, 2015 How is it called in your onLoop? Thank you for replying but i have sorted it out. was something in my waitingWhileMaking() method while it makes the wines.