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 MichaelTaylor3d · Aug 07, 2012 at 07:43 PM · wwwtexturesloadassetbundles

Loading a large texture at at run time kills fps

Im loading in a bunch of asset bundles dynamically. The downloading part works without any drop in framerate, but as soon as I start to load in my textures using either

 renderer.material = www.texture;

or

 www.LoadImageIntoTexture(renderer.material.mainTexture as Texture2D);

the fps plummets and it even temporarily freezes the scene.

Is there a way to load Textures async in the background or buffer them of some sort?

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
Best Answer

Answer by ScroodgeM · Aug 07, 2012 at 07:46 PM

just use real Asset Bundles

http://docs.unity3d.com/Documentation/ScriptReference/AssetBundle.html

instead the one that you use currently - it is not Asset Bundle, it's a simple web loading assets

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 MichaelTaylor3d · Aug 07, 2012 at 08:05 PM 0
Share

I was using asset bundles originally, each with a material and a texture associated with it. After loading a bunch of textures Unity would crash. Unity also crashed after Ive loaded a bunch of textures using the renderer.material = www.texture method. But not with the www.LoadImageIntotexture method.

Is there a known advantage with asset bundles as oppose to directly accessing the textures from the WWW? It seemed to me it was more unneeded overhead when all im loading in at run time are textures.

avatar image ScroodgeM · Aug 07, 2012 at 08:10 PM 0
Share

debug crashes with asset bundles. i think there just something was wrong, it's not a normal for asset bundles...

avatar image MichaelTaylor3d · Aug 09, 2012 at 03:42 PM 0
Share

Just got the bundles working a moment ago from the code you gave me on my other post. You were absolutly right. Loading in an assetbundle as oppose to the raw texture completly eli$$anonymous$$ated all frame rate drops.

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

8 People are following this question.

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

Related Questions

Load external mp3 File without streaming 1 Answer

load csv www 0 Answers

How do you package/retrieve Asset Bundle Dependencies 0 Answers

Import Texture with good quality... 2 Answers

Double memory for textures downloaded with www..... 2 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