I'm making a new game that's using lots of functions, and I usually need to tie them together.
David showed me the "Call function after delay", a nice workaround for Construct's way of computing things (I don't remember his explanation, but this is irrelevant to my question anyway ).
Anyway, I wanted this delay to be as quick as possible, but I'm afraid to use a very small value (like 1ms, for example) and have the risk of skipping the next function... So, is this possible to happen? What would be a minimum safe value for this delay?
Develop games in your browser. Powerful, performant & highly capable.
20ms is above the TimeDelta-safe zone, so to speak. I recall Ash mentioning long ago than anything less isn't 100% reliable.
'Call function after delay' only checks if the delay has expired at the end of the event list. So if you're running at 100fps, it'll only check to see if the delay has expired every ~10ms, so timings less than that don't make much sense. It's perfectly safe to use smaller values, they'll just still be executed after about 10ms. Generally all timing things in Construct are synchronised to the framerate so your resolution will be about (1000ms / framerate) milliseconds.
Great replies! Thanks guys!
I was always concerned about this...