Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[fixed] Xbox One: Can't Run Uwp App As Game

Discussion in 'Windows' started by Wolfos, Mar 23, 2019.

  1. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    950
    If I deploy the app and start it, it will run, but performance is bad (20FPS-ish). I've read that setting the app to game mode (rather than app) should help, but when I launch it, it will display a white screen with a gray box with an X in it. After about a minute, it prompts me to 'wait a full minute and retry'.

    This is an original Xbox One running the February 2019 system update. The app is built as release (because the framerates in debug mode are appaling).
     
  2. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    950
    Solved by rebooting the Xbox.

    Game mode appears to have made matters worse, adding random freezes to the already low framerate.
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Have you figured out where the random freezes are coming from?
     
  4. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    950
    I have not, though I've found some stuff in my game that might be bad for performance. For now I've reverted it to app mode and got it to run at a constant 30FPS. High resolution shadows seem to be especially bad.

    I'll let you know if I figure out the cause of the freezes.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Note that if you submit your game to the store, it will automatically run in "Game mode" because it's a game.
     
  6. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    950
    So the performance issues were because I had a bunch of 'mirror reflection' scripts active (IE, it was my fault). On PC, and even iPhone, the device powered through, but it seems that it was especially hard on the Xbox One.

    Either way, it's running in game-mode at a very smooth 60FPS now.