Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

.NET Native?

Discussion in 'Windows' started by yoonitee, Jan 15, 2015.

  1. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,364
    Have you seen this?

    Says it will make your C sharp Windows Store app start 60% faster and use less memory!

    Has anyone tried this on a Metro app made in Unity with C sharp? Have you noticed any performance increase?
     
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    .NET Native is used in Unity apps with Windows 10 SDK automatically if you build for Master config. It is a requirement to use it in order submit to Windows Store if you're targeting Windows 10 SDK.
     
    Dustin-Horne likes this.
  4. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    To add, Microsoft handles this for you. When you build in Debug mode it still builds normally and you can debug and run faster. When you build in Release mode and/or deploy to the Windows Store, it will use .NET Native.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    It's a setting in project file. We don't enable it in Unity release builds, only in Master (partly because .NET native takes a while to build).
     
    Dustin-Horne likes this.
  6. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    I tried this and hit lots of problems with missing installs, that I had to hunt down install then find I needed more installs. Then I get an error about icon size being wrong at that preventing the build?!

    I think if you could run a dependency check on the tool chain used then Unity could really make this a lot easier, with auto-installs prior to build.

    Should I send in a bug report on the icon error or is it already in?
     
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,658
    We don't have bug with icon error as far as I know, please submit a bug with small repro. Thank you
     
  8. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    Actually we do, just a bit more generic: the are issues with manifest generation on Windows 10.