Checking mrunning state after computeDeltaTime because there is a sleep inside