Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ephdot · Mar 12, 2018 at 03:18 AM · sceneloadingslow

Scene Loading Very Slow - Sometimes

Sorry this is a bit vague, but I can provide more details if needed. I wanted to put the scenario out there first to see if anyone has any ideas. As part of creating a new game I have two scenes - a Main Menu and a prototype level scene. I have UI buttons in each that allow me to navigate between them just fine with no delay. Recently I added a new scene that will serve as a level selection. It is an empty level (no meshes, lights, etc) with a single button - a Back button to return to the main menu. It uses the same code in its button to load the main menu as the prototype scene. If I run it so the Main Menu scene goes to the new scene it works fine. However, the button on the new scene to load the Main Menu scene takes 15 seconds for the Main Menu scene to load. The oddness is that I can go from my prototype level scene back to the Main Menu scene in about 1-2 seconds. I'm at a loss as to how it can take so much longer to go from a basically empty scene to the Main Menu scene when a fairly heavy scene does it without any issues.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ephdot · Mar 13, 2018 at 03:30 AM 0
Share

I suspect that I have isolated the issue, but I only have a theory for why it would go from one scene just fine and not another. In the end I decided there were too many textures being loaded on the main menu. I've confirmed that I can get it to load much faster by reducing the number of them.

For the theory part, I wonder if the reason that it goes from a heavy display to the main menu has to do with them having many textures in common. If they are already in memory, will it use them versus loading them? Not sure.

avatar image SohailBukhari · Mar 13, 2018 at 11:35 AM 0
Share

Are you sure you are not using any shader which takes time to load?

avatar image ephdot SohailBukhari · Mar 13, 2018 at 01:53 PM 0
Share

I've confirmed that it is a contributing factor. Initially, I created a background for the problematic scene with some of the game assets (houses, etc) included. If I remove all of them, it improves the load time. $$anonymous$$y plans are to switch to a static image or sprites as the background. It's not exactly how I pictured the end-result, but it should do. Thank you for the feedback.

1 Reply

· Add your reply
  • Sort: 
avatar image
7
Best Answer

Answer by tormentoarmagedoom · Mar 13, 2018 at 11:13 AM

Gooda day. Do your scene have music and sounds? you must know preloading or not all music and sound make the loading process very slow.

You should take a look at the Unity audio source page and compile your project in diferent audio configurations to see which way is the best for you.

Regards!

 If helped, accept the answer! :D
Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ephdot · Mar 13, 2018 at 01:56 PM 0
Share

That's very good to know. I'll try removing all of the sounds to see if it helps. Thanks for the info.

avatar image ephdot · Mar 22, 2018 at 12:27 AM 0
Share

I changed a few things and now have it loading in a little over a second. The biggest boost was in changing the audio settings per this post.

Unity Audio Settings

As such, I've accepted your answer. It is worth noting that using $$anonymous$$eshBaker to combine meshes/materials and updating my texture compression settings also helped.

avatar image DarkT0mato · Aug 22, 2019 at 07:01 PM 0
Share

Thanks man! It worked for me! :)

avatar image Hefaz · Jan 31, 2021 at 10:38 AM 0
Share

Thank You. I just changed the decompress type to strea$$anonymous$$g for all audio files in my game and also unchecked pre-loading. the scenes load faster now.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

91 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Does scene loading improve performance? 1 Answer

Webplayer hangs on loading scene 2 Answers

Game flashes to white and desktop while changing scenes 2 Answers

What Happens in Scene Load 1 Answer

Main Scene keeps becoming corrupted randomly. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges