decentraland / unity-renderer

Unity implementation of Decentraland Client
https://play.decentraland.org
Apache License 2.0
136 stars 93 forks source link

Spike: Investigate unity initialization load time #4101

Closed AjimenezDCL closed 1 year ago

AjimenezDCL commented 1 year ago

Context

The unity initialization time for Unity is currently over 15 seconds (see https://metabase.decentraland.systems/question/1242-loading-time-unity-download-initialization-weekly.

We also have a sentry issue which indicates there is a 5000ms freeze on startup. See https://sentry.io/organizations/decentraland/issues/3863272273/?project=4504361738698752&query=is%3Aignored&referrer=issue-stream&statsPeriod=14d. During loading the world the experience gets frozen for >5 seconds (see #4003). We have to pin-point when this is happening and if it's desirable.

For this task we should look at the loading times as a whole and create a breakdown of which parts of the unity initialization is taking so long and look to rectify and improve this.

Acceptance Criteria

m3taphysics commented 1 year ago

After chatting with @aixaCode one of the problems behind this could be our usage of Resources.Load and the total resources that have to be indexed at load time.

eordano commented 1 year ago

Marking this as "later", after we refactor the minimap. We know from https://www.notion.so/decentraland/Performance-Profiling-2023-1-16-f6ad6b9ef07647298e78d4610efd5c1e#28292217d7f5420e8e01f0826115b2d6 that at least 500ms are spent at instantiating the map

image.png