Wizcorp / phonegap-plugin-wizCanvas

WizCanvas allows a developer to create a ultra-performant native canvas component. The view is based on the Ejecta framework and has WebGL support.
MIT License
43 stars 13 forks source link

Reclaim memory when removing canvas view #25

Open bostondv opened 10 years ago

bostondv commented 10 years ago

When removing the canvas view or loading new content into the existing canvas view I am finding the memory previously used is not cleared / garbage collected on iOS. This results in memory usage continually growing when loading content and adding/removing the view multiple times. I am using an iPad 3 with iOS 7.1.

The scenes being loaded into the canvas view are three.js webGL views that are reasonably large, so after loading a few scenes performance is noticeably degraded and easy to crash the app due to running out of memory.

Is there any way to reclaim memory?

Thanks!