Search Unity

Resolved Performance issues with d3d build on xbox - xaml build is fine

Discussion in 'Windows' started by ZevBlack, Jan 25, 2023.

  1. ZevBlack

    ZevBlack

    Joined:
    Jan 4, 2015
    Posts:
    2
    I'm porting a game to uwp for xbox one and encountering severe performance issues (~2fps) from a d3d project, however there is no such issue when running a xaml project. From what I understand, d3d should be the more performant option.

    Are there any suggestions or configuration quirks that I might have missed that will result in this behavior?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Did you try attaching the profiler by any chance? Obvious things to check is making sure you're not running in debug mode, that things don't throw exceptions every frame and that app on xbox is configured to game mode.
     
  3. ZevBlack

    ZevBlack

    Joined:
    Jan 4, 2015
    Posts:
    2
    It was configured to game mode, Build Configuration is release. I did a development build and attached the profiler ...aaand it runs perfectly fine. This is terrific but I can't very well publish a dev build.

    edit: Ran a new build without Dev mode and the performance is great. Though I checked and rechecked the only thing that makes sense is I had been using a debug build.
     
    Last edited: Jan 25, 2023
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Well I'm glad it's resolved :D.