decentraland / unity-renderer

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

Investigate Low CPU Time / Large Loading Gap #5185

Closed m3taphysics closed 1 year ago

m3taphysics commented 1 year ago

Description

image.png During the profiling session we noticed that we have a large amount of time consumed with very low CPU time. If we can parallelize some of this we may gain a lot of time back.

Deliverables

m3taphysics commented 1 year ago

We have a large loading gap related to audio, they are downloaded from the content server urls and are not asset bundled:

image.png

This appears to be downloading (uncached) audio files every time we load the plaza. Some example files are:

https://peer.decentraland.org/content/contents/bafkreidxpkcdav2neh3faqwqx7ipmh2nyl3vnaqgkmq4deoenazcnvkp7e https://peer.decentraland.org/content/contents/bafkreid46ngr5la4s7if7jl3l3dux6y72lh6g343y4smhotc3annkj3n2e

m3taphysics commented 1 year ago

Update: this is not true, this was just an instance where the tasks could not finalize due to a main thread block from the shader warmup.