Highlighted

help: ios large image problems

Contributor ,
Jun 11, 2014

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?

TOPICS
Development

Views

122

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

help: ios large image problems

Contributor ,
Jun 11, 2014

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?

TOPICS
Development

Views

123

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 11, 2014 0

Have something to add?

Join the conversation