Minimized / Tabbed Out

I’m sorry if this question has been asked a million times, but unless my search ninja skills failed me, there are not any articles on it.



Is it possible to have jME3 continue to run while the application is minimized? When I tab out of my simple game the frames do not continue to update then when I tab back in everything runs really fast for a second (possibly trying to sync up to where it should be?). If it’s not possible to have it continue to run is it at least possible to detect when the application is minimized/tabbed out of?



Thanks

app.setPauseOnLostFocus()?

normen, thank you for your reply.



Does that mean it is not possible for jME3 to continue to update while minimized? If you’ve played minecraft, I’m thinking of something similar to how minecraft handles tabbing out. The game brings up the “pause” menu but continues to render even though the application has lost focus. Is that achievable?

You can detect if the app is focused by overriding the lostFocus()/gainFocus() methods in Application and then taking appropriate action

Momoko_Fan said:
You can detect if the app is focused by overriding the lostFocus()/gainFocus() methods in Application and then taking appropriate action


BAH. Thanks a million, that was really easy. So easy in fact I suspect that's why no ones talking about it.