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 fanling3 · Jun 05, 2013 at 09:31 AM · out of memory

System Out Of Memory Texture2D

alt text

I have added some frame animations using prefabs. I instantiate them in runtime. After adding these prefabs. I have the above error when I build it to apk. If I dont build that scene, it's fine. There are totally around 150 730x730 png inside these prefabs. Of course I already have tons of other textures in other scenes. I need to add even more.

I'm running Unity 4.1.2 on Windows 7 with 4GB ram. How to solve this? Thanks.

Comment
Add comment · Show 2
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 fanling3 · Jun 05, 2013 at 09:59 AM 0
Share

Is shader related to this?

avatar image fanling3 · Jun 05, 2013 at 10:33 AM 0
Share

I noticed my colleagues changed those textures format from Compressed to True Color. And I changed them back and it works. What's the cause behind this?

1 Reply

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

Answer by liszto · Jun 05, 2013 at 11:45 AM

First of all, your windows is a 64bit version ? If you are using a 32bit version don't search in other way the problem is just here in front of your eyes.

If you are using a windows 64bit, there is other thing that can provoke this :

Because when you have an image with those dimensions (730*730) with png you have an alpha channel used whereas with a jpg it's only 3. If you have 4 channels in used, with a true color texture, your datas are uncompressed so your picture take more space in memory. With 150 sprites and 730*730px you must reach something like 500Mo (only for this animation) + your others textures. Add to this size the Unity process, and I can supposed your Unity proccess used 600Mo roughly. So only with those 2 parameters I already used 1.2Go and if you have windows with 32bit it won't work. I don't compute the size with all your others textures but I must be higher than this I think.

If it's to build and apk (so an Android game), I can say already one thing it's really too much. Try to decrease your texture size. You really need to have this size ?

Comment
Add comment · Show 1 · 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 fanling3 · Jun 06, 2013 at 07:09 AM 0
Share

Thanks for explanation. I'm using 32bit version. Because my colleague (he's an artist) feels that the images are not perfect so he used True Color. I guess we have to stay with Compressed.

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

15 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

Related Questions

Texture2D Generation Causing Memory Leak (System Out of Memory) 1 Answer

Unity says: "The System is Running out of memory." when it is not. 5 Answers

Crash on Inspector during play 0 Answers

Unity3D 4.6.2 Build Crash Out Of Memory 1 Answer

How to solve the OutOfMemoryException when a List is too big? 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