• 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 misichi · Nov 19, 2014 at 09:48 AM · iostexturememory

Changing textures accumulate in memory. iOS.

Hello there! I am having a problem in my iOS app. Use-case scenario is:

  1. user selects wc image he likes (string url is returned)

  2. www is used to get image from url

  3. texture2d = www.texture (something like this)

  4. texture2d is applied in a gui.box in OnGUI() method.

when texture is applied, it adds 15-20mb in memory (quite a lot, is this normal?). what's worse is when user decides he doesn't like the image and chooses another (repeat steps 1-3), memory adds another 15-20 mb. so it goes to something like 40mb all in all. If user keeps on changing, the app will surely crash when going beyond 100. please tell me what's wrong, or maybe a work-around. Any guides are appreciated, 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 HarshadK · Nov 19, 2014 at 08:10 AM 0
Share

Read: (Solved) Texture memory piling up

avatar image misichi · Nov 19, 2014 at 08:50 AM 0
Share

thanks Harshad$$anonymous$$! :D

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Can I load textures at runtime with a smaller memory footprint? 1 Answer

Loading external Image as Texture2D increases memory consumption dramatically on iOS 0 Answers

Textures/Atlases and memory management 0 Answers

Loading a Random Resource in a Folder Without Using Resources.LoadAll 0 Answers

Determining Texture Memory Usage 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges