Maximum about of textures you can upload

Posts: 40
Joined: 2009.05
Post: #1
I hope this isn't a naive/stupid question.

I've been making progress on my iPhone game using the texture2d class from the crash landing sample.

So far I've just been loading up my pngs and creating textures from them. But it occurs to me that I can't just keep doing this - presumably there must be some limit to the memory that is used to store textures.

Are there any guidelines on texture management?

Quote this message in a reply
Posts: 6
Joined: 2009.05
Post: #2
I don't think so, maybe there is something wrong with your memory management, You could print in console the retain count of your textures every time you create one so you could see if you are handle it incorrectly.

Just do this:

#import "stdio.h"

---in somewhere---
printf("%d\n", [myVariable retainCount]);
Quote this message in a reply
Posts: 25
Joined: 2009.05
Post: #3
First, use pvrtc compression with loader from PVR SDK or oolong engine. It will save you alot of memory.

Second, create dammy texture that should be referenced if loading new texture was failed for some reason (and memory insufficiency is among them)
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Maximum Tri or Poly Count iOS game Dwellmuth 1 4,300 Jun 29, 2012 10:43 AM
Last Post: OneSadCookie
  Where is the application to upload for distribution? Lostlogic 1 2,195 Oct 10, 2008 03:13 PM
Last Post: Lostlogic