Slow loading between splash screen and first scene

Hi,

I’m actually working on a 2D game (platformer) and i have a problem with loading after build, it takes between 15s and 25s before showing the first scene and after showing the splash screen.

I have read a lot of stuff in forums, tried many things but my issue remains :

  • Check for music import settings

  • Check for size of scene (i’m talking about this later, it’s very light)

  • Check for Player settings :

  • Play with “Logo duration” for splashs screens does nothing, datas seems to be loaded after showing them, duration of “blank screen” is always the same

  • Tried to play with “Preloaded Assets” to see if datas are preloaded during splashs screens : It adds time…

I’m working on Unity 2018.2.6f1 (Free version for now). My hardware configuration is :

  • AMD Ryzen 7 2700x
  • 16 Go DDR4
  • SSD Crucial 500MX
  • GeForce 1080 GTX OC 8Go
  • OS : Windows 10 Pro (Almost up to date)

The first scene is not big :
3803989--319723--Capture_01.JPG

A simply screener with camera, music, a logo, a scrolling background, a flashing text and the Rewired Input Manager (3 C# scripts are in use) :

The music is streamed with Vorbis Compression Format (4.5Mo) and the total weight of the scene’s assets is less than 50Ko. Once “A” is pushed, the next level is loaded.

If needed i will activate the profiler for debug later. I just want to know if some people have same issues than me. I will respond probably tomorrow or monday, sorry for the delay, i’m going to a test session of the game.

Except this problem, the game works perfectly like in the editor.

Thanks for your help :slight_smile:

Semifer

I have launched the game on an other computer this saturday and the problem doesn’t exist. It seems there is a Unity cache on my computer who slow down the loading. Any advice to resolve this ?

Thanks.

I’m not sure about the cache issue, but one suggestion that is generally useful anyway:

Have an initial scene that is just an image and a script to load the next scene after something like 0.1 seconds. This mades a massive difference on mobile to get you out of the OS environment and into the game as quickly as possible. I’ve heard suggestions it is also useful on other platforms such as desktop.

Usually a first scene taking a while to load will be due to a few factors

  1. If your hardware is memory constrained, and you need to swap to virtual memory to load the scene (you have 16GB, so probably not the issue, but could be if you have 16+ GB of other applications running)
  2. If you have a large amount of assets to load for the scene
  3. If you have a large amount of assets in a Resources folder, which will all get loaded even if you don’t use them
  4. If you have something blocking the main thread (for example you have poor internet but do some networking access on the main thread that has to timeout or wait a while for completion before execution can continue)

You also may see different behavior between the editor and a build even on the same machine.

Hi,

thanks for yours replies and sorry for the response time.

To answer :

  • The game is design to run on PC, eventually consoles if i can, one day, maybe :slight_smile:
  • No swap, i do not use all my memory
  • My first scene is really poor like i previously said, with very small assets (50Ko).
  • The actually total of my assets for the game is 8Mo, i don’t think it is the source of my problem…
  • I have a very good internet connection (FTTH → 1Gb/s) and no network features for now
  • The problem exists even on a “final build”, only on my PC

The game has been tested on similar hardware with no loading time, that’s why i think that is a cache problem. I have read some stuffs about that but i don’t know how to do this without recreate a project from beginning.

Thank you!

Have you ever found a solution to that. I ripped my project apart completely never was able to get rid of that loading time.

I am still struggling with this loading time issue. Don’t know what to do. I have tried almost everything I am aware of. My first scene is just a loader with an image. It seems like Unity is loading all the assets at once in the beginning because my loader hardly takes a second to shift from one scene to the other.

Is there a way to tell Unity not to load anything until the loader scene shows up and load the assets then instead.

Also I am fine even if it shows an image while doing this waiting process after splash screen, but a blank screen is an absolute No No.

Any solutions for this problem?
I have 15 secs loading time on the splash screen.