Maximum about of textures you can upload
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?
Cheers
Chris.
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?
Cheers
Chris.
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]);
Just do this:
#import "stdio.h"
---in somewhere---
printf("%d\n", [myVariable retainCount]);
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)
Second, create dammy texture that should be referenced if loading new texture was failed for some reason (and memory insufficiency is among them)
Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
Maximum Tri or Poly Count iOS game | Dwellmuth | 1 | 5,286 |
Jun 29, 2012 10:43 AM Last Post: OneSadCookie |
|
Where is the application to upload for distribution? | Lostlogic | 1 | 2,839 |
Oct 10, 2008 03:13 PM Last Post: Lostlogic |