- Home /
Large memory footprint increase when assigning a GUITexture from a WWW Object on iPad
Hello Everyone. I am working on a game for the iPad that has downloadable content. The content is 200 pictures per pack so we're downloading the images directly to disk rather than using assetbundles (we were having memory issues). Now however when I call the following code I am seeing some very strange results.
Loading our game we sit at 72mb Real Memory according to the XCode profiling tools. If I call the following code our game stays at 72mb.
WWW AImageObj = new WWW("file://" + GameContentManager.GetiPhoneDocumentsPath() + "/" + transform.name + "/" + iPicNum + "a.png");
yield return AImageObj;
If I try to assign that AImage object to a GUITexture using the following code, my Real Memory jumps up to 79mb.
MyNextPicPair.APhoto.guiTexture.texture = AImageObj.texture;
I've looked at the width/height/memory on disk of the image and everything checks out. We're loading a 500x600 png with a filesize of 600kb. Has anyone encountered this type of memory increase or see something that is throwing up a red flag as to why I am getting a 5mb increase on a .5mb texture?