Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by FunCrafter_ · Nov 23, 2020 at 01:51 PM · scripting problemscene-loadingobjects

Why is SceneLoading slow with big Animations?

So i am working on a simple game. I have a Scene with a ScrollView handler that generates Content for a ScrollView. This handler Holds 3 Gameobjects, that use an Animation. All of these Animations are just animating the Image. All of these Animations have over 90 Keyframes because the animation is over 90 Images long for all of these 3 Gameobjects. When i remove those 3 Objects out of the ScrollView handler, the Scene loads seasmlessly. When i have these 3 Objects in the ScrollView handler, the Scene Loading takes up to 2 Seconds. This game is supposed to be an Android game and I want to have seamless Scene transitions without a Loading Screen because in this case that would be purely annoying. How would I fix this?

All Help would be highly appreciated. Im stuck with this Problem for many Days now and I really dont like to go the way with Async Level Loading and creating a Loading Screen.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ryanmillerca · Nov 23, 2020 at 01:55 PM

It sounds like you're using sprite animations. 90 images x3 gameobjects is 270 images. How big are these images? Are they compressed? Are they sprite packed or atlassed? If each image is 4mb for example, then you've added 1gb of textures that need to be loaded into memory when you start the game. This is the reason your startup is slow - you're simply loading a lot of data with that animation. The solution to reduce load times is to reduce the amount of texture data in your animation - by compressing those textures, restructuring your animation to use less images, or find another method (rigged/puppet animation or video players).

Comment
Add comment · Show 3 · 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 FunCrafter_ · Nov 23, 2020 at 05:55 PM 0
Share

Each Animations Frames is more or less 10kb big. They have been compressed as hard as possible without losing detail. Together those 4 Animations Images are like 4mb of data. But i have not tried using an atlas or Videoplayers. But thats probably something I will have to do. Any other tips?

avatar image ryanmillerca FunCrafter_ · Nov 24, 2020 at 02:59 PM 0
Share

10kb as the file size of your source PNG/JPG/etc files is one thing, but they become a different format when they go into a game engine. Compressed formats like PNG don't live on the graphics card, they get turned into DXT/ETC/PVRTC/etc other formats that read/write faster depending on your target platform. A good starting point to fix this is to pack your textures https://docs.unity3d.com/2017.3/Documentation/$$anonymous$$anual/SpritePacker.html and set the image compression reasonably high in your project asset settings (crunched, compressed, low/medium quality is a good start).

avatar image ryanmillerca FunCrafter_ · Nov 30, 2020 at 01:21 PM 0
Share

Turn on profiler before you load the scene and watch the $$anonymous$$emory section. Back to the original post, your scene loading is slow because there's a lot of data to be loaded using the frame-by-frame animation approach. Please accept my answer if you feel it's accurate, thanks.

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

253 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 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 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

Bolt Visual scripting and loading different scenes/levels 1 Answer

Access to a scene that has just been loaded 1 Answer

Disabling Script on many Objects one at a time. 1 Answer

Unity keep crashing when loading scene from a couritne (Unity 5.x) 1 Answer

Why isn't my scene transition coroutine working? 1 Answer


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