Copy link to clipboard
Copied
I'm developing an app that shows retina images in a kind of photo album.
I'm having stutters when moving the photos and according to Scout the problem comes when rendering dirty regions.
I'm using loaderContext.imageDecodingPolicy = ImageDecodingPolicy.ON_LOAD; to in theory decode the images in a separate thread. Also, because Adobe Air clears the memory of a bitmapData that is not being used after 10 seconds, I'm using the getPixel trick to keep the bitmapData alive and avoid redecoding the images and getting more stutters. Even if I preload all the images before showing the photo album I get stuttering. I presume I'm hitting some memory limit.
I'm trying to find a workaround, such as loading low resolution files, and then showing the retina image, but my client insists he wants retina images. He says (and it's true) the Apple photo gallery moves retina images without any hiccup.
Anyone has any idea on how to solve this?