Question

I have written an app which makes use of an OpenGL ES 2.0 scene using GLKit. I am looking now to make sure that I manage all memory associated with the GLKView and GLKViewController.

I have already found the deleteDrawable property on the GLKView which helps to release memory while the scene is not on the screen.

What interests me is the other parts of the GLKit that are using memory - for example the buffers that are setup behind the scenes when using GLKViewController - do these need to be manually released somehow under ARC and if so how ? Also are there any other considerations for memory management under ARC with GLKit ?

Thanks for any insights !

Was it helpful?

Solution

GLKit is an Objective-C framework. Whenever you are dealing with Objective-C objects, ARC will manage their memory.

So to answer your question, no, you won't need to manually release the memory, provided that you only create Objective-C objects (like GLKViewController, GLKView, ...).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top