Suspended application time?

Community Forums/Monkey Talk/Suspended application time?

orgos(Posted 2011) [#1]
Hi

I post this doubt here because I'm still using demo version.

I'm working in a 1024x768 canvas size game, on browser, the frame-rate for this is low, 15 FPS having numerous images and sprites, in some occasions when the sprites are moving the browser goes slow and suspend the application, when it back some time has been passed so, i need to get the passed time while the application has been suspended.

It is any way to get it?


MikeHart(Posted 2011) [#2]
Millisecs() will give you the current time the app is running.


orgos(Posted 2011) [#3]
Mike, thanks, I know that, but the problem is to know when the game goes suspended by other browser tasks.

Maybe checking a minimal delay time between two Millisecs call can helpme to know if the application is not responding for some time...

What you think?


MikeHart(Posted 2011) [#4]
You don't ask about delta time depended movement,do you? If you check Millisec() in each OnUpdate event, it will report the time that it took since its last call. So if your app freezes somehow, then the delta between these calls will be even bigger.
Or what did you mean by suspend the application?


Volker(Posted 2011) [#5]
There is OnSuspend() since Monkey V31.
But only in full version AND only for iOS, Android, XNA.


orgos(Posted 2011) [#6]
Thanks for replies. :-)