Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Slow dotnet Tiny application start

Discussion in 'Project Tiny' started by Grizzant, Sep 4, 2020.

  1. Grizzant

    Grizzant

    Joined:
    Jun 4, 2015
    Posts:
    8
    Hi,

    Another small issue that i am facing is a slow application launch with .NET Tiny target whatever the config is.

    From unity, without any modifications and when i press build & run, the build is done very quickly then i have to wait about 30s before i the application is launched.
    Same behavior if i launche manually the .exe from my build folder, i see the application console opening, then i have to wait the 30s before the game starts.

    I disabled firewall / antivirus but it does not help.
    Sometimes the issue disappear by itself, the game launches quickly, then it comes back o_O

    Any idea ?

    Thanks beforehand
     
  2. Grizzant

    Grizzant

    Joined:
    Jun 4, 2015
    Posts:
    8
    After further investigations, the line taking so much time is in
    \Library\DotsRuntimeBuild\artifacts\Stevedore\glfw\src\win32_joystick.c


    Code (CSharp):
    1.    
    2. if (_glfw.win32.dinput8.api)
    3.     {
    4.         if (FAILED(IDirectInput8_EnumDevices(_glfw.win32.dinput8.api,
    5.                                              DI8DEVCLASS_GAMECTRL,
    6.                                              deviceCallback,
    7.                                              NULL,
    8.                                              DIEDFL_ALLDEVICES)))
    9.         {
    10.             _glfwInputError(GLFW_PLATFORM_ERROR,
    11.                             "Failed to enumerate DirectInput8 devices");
    12.             return;
    13.         }
    14.     }
    Looking for a way to accelerate this. :confused:
     
  3. Grizzant

    Grizzant

    Joined:
    Jun 4, 2015
    Posts:
    8
    Ok, i found that it is my gamer mouse causing the issue.
    If i unplug / replug it, startup is fast again.

    So nothing related with Project Tiny, sorry :)