Unity music loading optimization and unity music Loading

Source: Internet
Author: User

Unity music loading optimization and unity music Loading

Familiar with Unity5X, Mac/PC is applicable to Ogg Vorbis Audio, while Mp3 is applicable to mobile terminals, but the sound quality will decrease

In some cases, you do not need to pre-load all data, so you can set it to stream loading;

In this case, Preload Audio Data is disabled, so there is no need to load all Audio clips at the beginning, which reduces the loading time! This will be loaded only when the audio is used.

Maybe now you will think, "Will they occupy memory once I load and use all the audio clips ?"

Do you still remember to set the Load Type to Streaming, and the audio clip will be placed in the cache and played from the cache. Once the video is played, it will be uninstalled, this releases the memory. Therefore, the memory usage is optimized.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.