googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
647 stars 191 forks source link

Can't release memory using loadImage:nil for GVRPanoramaView #169

Closed tk820723 closed 6 years ago

tk820723 commented 7 years ago

I need to release all the memory for GVRPanoramaView when panoView disappears. I tried to call loadImage:nil but the memory was not released, so I had to remove the whole panoView from subview and released it to release the memory and I would create another when it appeared. However, this will sometimes cause crash on gfx::Renderer::VertexArrayResource::UpdateAndCheckBuffers: when users swipe too fast. Any solution that I can release the memory without remove the whole panoView?

EthanChouTW commented 7 years ago

+1

QEllis commented 7 years ago

+1 I know the release notes say this was fixed (https://developers.google.com/vr/ios/release-notes) but I am not finding this to be the case.

sanjayc77 commented 6 years ago

Please move to GVRKit since PanoramaView is now deprecated. You should check out the updated PanoramaView sample based on GVRKit. It gives you more control over images you load into it.