as3 starling gif decoder use https://github.com/honzabrecka/async-gif-decoder
if you need refresh gif gallery all the time, or need show a lot gif image in same time
use this library will have memory problem
so you need modify "com/jx/gif/GPUGIF.as"
change cachedTextures to public
public var cachedTextures:Vector.
then in your code, every time refresh GPUGIF, you need
if(gif.cachedTextures){
for(i=0;i < gif.cachedTextures.length;i++){
gif.cachedTextures[i].dispose();
}
gif.dispose();
gif.texture.dispose();
}
in this way, you can free 90% memory, if you have better way
please let me know!!
:)
starling gif decoder memory problem
2015年6月15日 星期一 by Hu, Ching-Hsiang
訂閱:
張貼留言 (Atom)
0 意見:
張貼留言