Pergunta

I am using PanoramaGL v0.1 to display Panoramic image. My Panaromic image is having resolution 4000 * 2000,size:1 mb. While displaying the image app is taking around 60mb of size as checked on instruments in simulator. Also whenever i tap on button to display Panoramic image memory is getting allocated, but never gets released.

Following is code:

NSObject<PLIPanorama> *panorama;

panorama = [PLSphericalPanorama panorama];
[(PLSphericalPanorama *)panorama setTexture:[PLTexture textureWithImage:[PLImage imageWithCGImage:imgPanoramic.CGImage]]];
[plView setPanorama:panorama];

panorama = nil;


- (void)dealloc 
{ 
  [plView release];
  [super dealloc];
}

Need some guidance where i'm going wrong. Thanks in advance.

Foi útil?

Solução

Remove all the textures after loading panoramic image.

[plView removeAllTextures];
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top