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

Unity for WP8 Game —Start up so slow

Discussion in 'Windows' started by istorm_shine, Jul 24, 2014.

?

Unity for WP8 Game —Start up so slow

  1. Time.realtimeSinceStartup1===================================16.12656

    0 vote(s)
    0.0%
  2. Time.realtimeSinceStartup1===================================16.12656

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. istorm_shine

    istorm_shine

    Joined:
    Jun 18, 2014
    Posts:
    9
    Hi,
    I use unity build window phone8 platform game, and test it on my Nokia 9200 phone, but it start up so slow. I upload my launch log as below:

    PlayerConnection initialized from C:/Data/Programs/{37466F55-A011-F44B-9378-B9BBDC5E7359}/Install/Data (debug = 0)

    PlayerConnection initialized network socket : 0.0.0.0 55186

    Multi-casting "[IP] 192.168.2.146 [Port] 55186 [Flags] 2 [Guid] 3411769244 [EditorId] 656832452 [Version] 1048832 [Id] WP8Player(192.168.2.146) [Debug] 0" to [225.0.0.222:54997]...

    Direct3D:

    Version: Direct3D 11.0 [level 9.3]

    Renderer: Qualcomm Adreno 225 (WDDM v1.2) (ID=0x32303032)

    Vendor: Qualcomm

    VRAM: 96 MB

    Initialize engine version: 4.3.4f1 (e444f76e01cd)

    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\UnityEngine.DLL”。无法查找或打开 PDB 文件。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\UnityEngineProxy.DLL”。无法查找或打开 PDB 文件。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Assembly-CSharp-firstpass.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Assembly-CSharp.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Assembly-UnityScript.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\BehaviorDesignerRuntime.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Cmd.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\CmdSerializer.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\ICSharpCode.SharpZipLib.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\LitJson.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\protobuf-net.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“Anonymously Hosted DynamicMethods Assembly”。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\UnityEngineDelegates.winmd”。模块已生成,不包含符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\WinRTLegacy.DLL”。无法查找或打开 PDB 文件。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\windows\system32\System.Xml.Linq.ni.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。

    // this is a debug log info at my first scene Awake()
    Time.realtimeSinceStartup1===================================16.12656

    (Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WP8SupportGenerated/UnityEngineDebug.cpp Line: 55)


    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\windows\system32\System.Runtime.InteropServices.WindowsRuntime.ni.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
    线程 0xec8 已退出,返回值为 259 (0x103)。
    UnloadTime: 10.901333 ms

    Unloading 3 Unused Serialized files (Serialized files now loaded: 1 / Dirty serialized files: 0)


    Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 1719. Operation took 427.963104 ms.

    System memory in use: 20.6 MB.

    线程 0x200 已退出,返回值为 259 (0x103)。
    线程 0xab4 已退出,返回值为 259 (0x103)。
    线程 0xd04 已退出,返回值为 259 (0x103)。
    “System.Exception”类型的第一次机会异常在 Assembly-CSharp.DLL 中发生
    “System.Exception”类型的异常在 Assembly-CSharp.DLL 中发生,并且未在托管/本机边界之前进行处理
    “System.Exception”类型的第一次机会异常在 Assembly-CSharp.DLL 中发生
    “System.Exception”类型的异常在 Assembly-CSharp.DLL 中发生,并且未在托管/本机边界之前进行处理

    I'm boring by this problem for a long time, hope master can tell me how to solve this problem, I would be grateful!
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,658
    Did you try to use 4.5.2?
     
  3. istorm_shine

    istorm_shine

    Joined:
    Jun 18, 2014
    Posts:
    9
    Dear Tomas:
    Thank you for your advice at first, and I have tried unity_4.5.2, but it throws a exception when game launch, and the abnormal as shown below:

    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\UnityEngine.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Assembly-CSharp-firstpass.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Assembly-CSharp.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Assembly-UnityScript.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\BehaviorDesignerRuntime.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\Cmd.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\CmdSerializer.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\ICSharpCode.SharpZipLib.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\LitJson.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\protobuf-net.DLL”。已加载符号。
    “TaskHost.exe”(CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): 已加载“C:\Data\Programs\{37466F55-A011-F44B-9378-B9BBDC5E7359}\Install\WinRTLegacy.DLL”。模块已生成,不包含符号。
    “System.IO.FileLoadException”类型的第一次机会异常在 未知模块。 中发生
    ====================================================================
    I ignore this exception just click continue, then it shows me :
    未处理FileLoadException
    “System.IO.FileLoadException”类型的未经处理的异常在 System.Windows.ni.dll 中发生


    What should I do when met this problem, hope you can help me to solve this problem, thank you very much!
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    Have you done a clean build? I mean to empty directory, not on top of existing one?
     
  5. istorm_shine

    istorm_shine

    Joined:
    Jun 18, 2014
    Posts:
    9
    Yes , I create a new directory when building our game.
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Can you paste full player log from phone isolated storage?
     
  7. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    Sorry, I may not be understanding fully but are you saying that when you launch your game on the 920, that it takes a long time to start up? I had this problem too but what I did was make the first scene in my game an empty scene that just loaded the next scene. That helped the load time upon start up to be just a couple seconds. Also turn off debug mode as that makes things much faster. (do a master build).
     
  8. istorm_shine

    istorm_shine

    Joined:
    Jun 18, 2014
    Posts:
    9
    Hi, Tautvydas:
    The full player log I have already pasted at #3, because the game would quit when caught "FileLoadException" , and in the Call stack window, we also can see that the exception happened in the System.Windows.ni.dll.
    > System.Windows.ni.dll!MS.Internal.JoltHelper.OnUnhandledException(object sender, System.UnhandledExceptionEventArgs args) 未知
    [本机到托管的转换]
    [托管到本机的转换]
    Assembly-CSharp.DLL!UnityEngine.Internal.$Metadata.GetUnityType(int id) 未知
    UnityEngine.DLL!UnityEngine.Internal.$MethodUtility.GetUnityType(int id, System.IntPtr method) 未知
     
  9. istorm_shine

    istorm_shine

    Joined:
    Jun 18, 2014
    Posts:
    9
    Hi, Rajmahal:
    I mean the time what takes a long time to start up is before my first scene running, as you can see from #1:
    // this is a debug log info at my first scene Awake()
    Time.realtimeSinceStartup1===================================16.12656
    I also tried this game running on Android phone,but it running time is half wp8 platform.
    And you say build game with master mode, it really make game faster a little, thanks!
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    #3 contains the Visual Studio output. I mean the actual player log from the device, extracted using Windows Phone Power Tools.
     
  11. istorm_shine

    istorm_shine

    Joined:
    Jun 18, 2014
    Posts:
    9
    Sorry, I didn't understand your mean before, and now I get the player log by using Windows Phone Power Tools, the log info as below:
    Build from 'release/4.5/release' branch, version is '4.5.2f1 (9abb1b59b47c)' (Release build).
    Physical memory: 898 MB, commited memory limit: 380 MB.
    Direct3D:
    Version: Direct3D 11.0 [level 9.3]
    Renderer: Qualcomm Adreno 225 (WDDM v1.2) (ID=0x32303032)
    Vendor: Qualcomm
    VRAM: 96 MB
    Initialize engine version: 4.5.2f1 (9abb1b59b47c)

    This is a fully player log info after launch, I 'm afraid it can't help you much to analyze.
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Does this happen only on master configuration, or on debug/release as well? Could you check whether it happens on the emulator?
     
  13. istorm_shine

    istorm_shine

    Joined:
    Jun 18, 2014
    Posts:
    9
    It happens on all mode configuration, and the same is to emulator. In addition, the place where game paused is at :
    // Code to execute on Unhandled Exceptions
    private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
    {
    if (System.Diagnostics.Debugger.IsAttached)
    {
    // An unhandled exception has occurred; break into the debugger
    System.Diagnostics.Debugger.Break();
    }
    }
    continue will be quit.
     
  14. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Is there any additional information on the exception object present?