@Override
    public void setPauseOnLostFocus(boolean pauseOnLostFocus) {
        if (pauseOnLostFocus) {
            setLostFocusBehavior(LostFocusBehavior.PauseOnLostFocus);
        } else {
            setLostFocusBehavior(LostFocusBehavior.Disabled);
        }
    }
Enable or disable pause on lost focus.
<p>
By default, pause on lost focus is enabled.
If enabled, the application will stop updating
when it loses focus or becomes inactive (e.g. alt-tab).
For online or real-time applications, this might be undesirable,
so this feature should be disabled. For other applications,
it is best to keep it enabled so the CPU is not used unnecessarily.

@param pauseOnLostFocus True to enable pause on lost focus, false
otherwise.

@see #setLostFocusBehavior(com.jme3.app.LostFocusBehavior)
jme3-core/src/main/java/com/jme3/app/LegacyApplication.java