我正在使用PanoramaGL v0.1来显示全景图像。我的全景图像分辨率为4000 * 2000,大小:1MB。在显示图像时,应用程序在模拟器中的仪器上检查时占用了大约60mb的大小。此外,每当我点击按钮显示全景图像时,内存都会被分配,但永远不会释放。
代码如下:
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];
}我哪里出了问题,需要一些指导。提前谢谢。
发布于 2013-03-01 23:31:53
加载全景图像后删除所有纹理。
[plView removeAllTextures];https://stackoverflow.com/questions/11825525
复制相似问题