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

Is my finish build of my game complied in C++ for Windows platforms standard executable?

Discussion in 'Scripting' started by AlanMattano, Oct 21, 2017.

  1. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    Unity scripts are fast and simple C#. When I press build button, for Windows platforms, is it compile the final .exe into C++ code?

    ps: Is ILCPP converting and compiling into C++?
     
    Last edited: Oct 21, 2017
  2. TaleOf4Gamers

    TaleOf4Gamers

    Joined:
    Nov 15, 2013
    Posts:
    825
    Windows standalone builds do not currently use IL2CPP. However UWP builds do.
    Source: https://docs.unity3d.com/Manual/IL2CPP.html

    (Although I dont know if the source is updated)
     
  3. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    And making a Universal Windows Platform using ILCPP runs faster than a Windows normal build?
     
  4. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    Speed isn't really the question to ask here. Do you want to make a game for UWP or just a standard executable?
     
  5. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    Just a classic standard executable.

    Speed is what I was thinking and looking for in this question.
     
  6. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,294
    IL2CPP is massively slower than just normal C# compiling. First all of your C# code has to be compiled to IL - here normal C# compiling is done. Then that IL has to be converted to c++ (That's what "IL2CPP" stands for). Then that c++ code has to be compiled.
     
  7. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    If you're not publishing on UWP then you don't want to make a UWP build.

    Go write good code and how it compiles will be irrelevant :)
     
  8. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Unity plan to bring IL2CPP to desktop in 2018
     
    TaleOf4Gamers and BrUnO-XaVIeR like this.
  9. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    YEEEEE!!!!! thx hip! :rolleyes: This is a good news!!

    @Baste I was talking about the fianl product. I was making too heavy my game and I was a bit worried.
     
    hippocoder likes this.
  10. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    TaleOf4Gamers and AlanMattano like this.