Is there a way to programmatically check the OpenGL ES texture memory usage on the iPhone?
I know you can use Instruments to monitor it, but I would like to do in in the app is possible.
Is there a way to programmatically check the OpenGL ES texture memory usage on the iPhone?
I know you can use Instruments to monitor it, but I would like to do in in the app is possible.
Hi lajos,
I don't think there's a built-in way to do this. Have you considered writing your own functions to malloc and free texture memory? I imagine you use malloc() to create memory for each texture. You could create another function that called through to malloc and also logged the amount of memory being allocated. It'd be a very primitive way of tracking the texture memory, but it'd be fast!