문제

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.

도움이 되었습니까?

해결책

Remove all the textures after loading panoramic image.

[plView removeAllTextures];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top