Hey Away team - Im working on an game app project for iOS / Android where we want to use Away3D in the first scene.. And because we have to target iPad1 and tegra2 android devices we need to be able to clean up memory on a greater basis - im using prefab to generate most of the scene
the problem:
When we have disposed all objects textures materials events we get a close to zero memory footprint CPU wise - but the gpu memory has no effect at all it keeps being maxed out with 31mb og bitmap data - its a simple scene with 3 texture maps no light no shaders only flat textures and a camera - we use proxyStage3D.dispose and disposeAllAsstes on everything i even gather all reference to all texture bitmaps in a vector and clear that - we use following lines to clean up
System.pauseForGCIfCollectionImminent(0.20)
_prefabOutput.disposeAsset()
_prefabOutput.dispose()
_prefabOutput.destroy() //method i wrote to dispose content in all vectorArrays of “ASbase.as”
_prefabOutput.destroyMats() //method i wrote to dispose textures and mats in all vectorArrays of “ASbase.as”
_view.stage3DProxy.dispose()
System.gc()