Search Unity

Run In Background player setting not working in standalone

Discussion in 'Editor & General Support' started by TerabyteTim, Jan 16, 2014.

  1. TerabyteTim

    TerabyteTim

    Joined:
    Oct 20, 2011
    Posts:
    115
    I've ran in to an issue with the Run In Background player setting.

    In the editor, if I tab out of the editor while the game is running everything keeps working fine.

    If I'm running a Windows standalone in windowed mode and tab out, everything keeps working fine.

    However, if I'm running the standalone in fullscreen mode and alt+tab out, or in windowed mode and click the top bar on the window to move it around, the game freezes. Not resuming till I either tab back in to the fullscreen game, or release the window in windowed mode.

    Is this a known issue? Are there any ways I can fix it? It is very vital that my game not freeze like that.
     
  2. TerabyteTim

    TerabyteTim

    Joined:
    Oct 20, 2011
    Posts:
    115
    Does anyone have any experience with this? All function stops when the game pauses, which for multiplayer causes massive issues. Is there a solution to this? Or is this just a Unity bug?
     
  3. rstorm000

    rstorm000

    Joined:
    Aug 19, 2010
    Posts:
    229
    Some of our players are reporting stuff like this as well. This appears to only be happening on windows standalone and seems to be a pretty critical issue. Hope there is a hot fix for this.
     
    Last edited: Jan 27, 2014
  4. ZPSheks

    ZPSheks

    Joined:
    Jan 22, 2013
    Posts:
    4
    We're unfortunately experiencing this as well. There's a reported issue in Unity's issue tracker - go vote! :)
     
  5. Cleroth

    Cleroth

    Joined:
    Jul 11, 2012
    Posts:
    25
  6. gsus725

    gsus725

    Joined:
    Aug 23, 2010
    Posts:
    250
    I'm also having this problem. It was working fine til I updated Unity.
     
  7. paranoidx

    paranoidx

    Joined:
    Apr 17, 2014
    Posts:
    43
    set this
    void Awake(){
    Application.runInBackground = true;
    }
     
  8. TerabyteTim

    TerabyteTim

    Joined:
    Oct 20, 2011
    Posts:
    115
    I did. This is a known Unity bug.
     
  9. fammXyShea849

    fammXyShea849

    Joined:
    May 11, 2013
    Posts:
    17
    I voted on it. This bug is causing so many problems in my game that it is driving me crazy. I cannot believe this problem hasn't been hotfixed, I can only imagine what is happening to other online standalones.
     
  10. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    :\

    Lucky I found that out now, we reached a point where we need pro, and we were planning on ordering next month
    This is a complete game breaker for our multiplayer :\

    I dont know what to do now, I am thinking about porting the project to a different engine, as sad as it is to leave unity
     
  11. Deleted User

    Deleted User

    Guest

    To tell you the truth,I am really surprised how long they fix this bug.
    P.S. Temporary workaround - you can use 4.2.2
     
  12. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    I was thinking about that, but to port my entire game to 4.2.2?
    Thats going to be a nightmare...

    Now I can continue my project, and hope it will be fixed soon (4.6?)
    I dont know, still thinking about tat

    But if we could have one of unity guys saying they are fixing the issue sometime soon, that would be great

    Edit: It also seems to be the second most voted unfixed bug, after a problem with opening VS as external file editor
     
    Last edited: Jul 3, 2014
  13. Cleroth

    Cleroth

    Joined:
    Jul 11, 2012
    Posts:
    25
    6 months later, a bug that takes a few minutes to fix yet breaks a whole market of games still isn't fixed. I'm done with Unity, they don't give a F*** about Windows users. This is absolutely pathetic.
     
  14. Dave-Hampson

    Dave-Hampson

    Unity Technologies

    Joined:
    Jan 2, 2014
    Posts:
    150
    It's look like a really highly rated issue so it's clearly affecting a lot of people.

    I'm going to have a have a chat with our graphics programmers and find out what's going on with this particular bug.
    I know that there are some graphics improvements in the pipeline for 4.5.
     
  15. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    THANK YOU for taking notice!
    Its really good to know that someone is checking on this bug.

    Please keep us updated!
     
  16. Dave-Hampson

    Dave-Hampson

    Unity Technologies

    Joined:
    Jan 2, 2014
    Posts:
    150
    I had a chat with Kaspar one of our graphics programmers, and we hope to have it fixed in 4.5.3
     
  17. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    That's great new! Thanks you!
     
  18. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
    Hi All, is this get official fixed? I seem to still have this issue in 4.6.1f Pro
     
  19. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    actually it did at some point, but I dont know how it is now :\
    did you try it with 5?
     
  20. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
    Unfortunately it doesn't work with 4.6.1f. I remember it not being a problem for a while with previous versions.
    I can't migrate to v5 currently as we're about to launch our game on Steam :/
     
  21. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    ohhh man :\
    is it a multiplayer game?
     
  22. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
    Na it's not, but it's still pretty bad if player want to alt-tab out or look at something
     
  23. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    yea but at least its not a "game-breaker"
    it completely breaks any non-authoritative online game
     
  24. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
    That's a shocker, how can they have not fixed this yet?
     
  25. iNoMore

    iNoMore

    Joined:
    Oct 13, 2013
    Posts:
    64
    according to the bug report, it was fixed at Fixed in Unity 4.5.3
    You should report it regressed
     
  26. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
    They must have broken it again in 4.6.1f, dang I might have to see if they fixed it in a later build. If I knew I would have stuck with the old build...
     
  27. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
  28. Garreler_Matjes

    Garreler_Matjes

    Joined:
    Nov 12, 2012
    Posts:
    25
    Hi,
    maybe I am wrong but the bug (Run In Background player setting not working in standalone) is still there in version 5.2.0f3 right?

    When does anybody something against it since so much costumers are complaining?
     
  29. Wenamun

    Wenamun

    Joined:
    Jan 9, 2015
    Posts:
    14
    I just discovered this bug. It's killing my multiplayer game currently. I'm running Unity 5.2.3p2
    For me it has nothing to do with fullscreen. Whenever the app loses focus, some (not all) functions cease firing. I need continuous functionality for important aspects of my multiplayer to work. It's so bizarre. When the game loses focus, most of its code still seems to run, save for a few key functions within an Update() loop. ARGH!
     
  30. Yowling-Cat-Games

    Yowling-Cat-Games

    Joined:
    Dec 11, 2014
    Posts:
    37
  31. Wenamun

    Wenamun

    Joined:
    Jan 9, 2015
    Posts:
    14