Skip navigation
Jarrod Verhagen
Currently Being Moderated

Image scale caching causing problems

Oct 31, 2012 7:29 AM

I have an app with a image that the user must be able to zoom and scroll.
When the image is first loaded it is at full view. When the user zooms the memory usage sky rockets, and during this zooming the app is very laggy.

Once the memory has added about 70Mb, the zooming runs without lag.

If the user waits however, the memory usage goes back down, the scaling lags again, and the memory fills again.
I have been able to get around this with making the height an odd number of pixels.

This causes the memory to stay at the +70Mb and prevent lagging, but this may not be a permanent solution.

Is there any way to prevent the GC from wiping the scale information? Or any way to manage how the cached scale data is stored?

 
Replies
  • kglad
    72,367 posts
    Jul 21, 2002
    Currently Being Moderated
    Oct 31, 2012 7:36 AM   in reply to Jarrod Verhagen

    this happens when you zoom-in?  if so, you should be loading a maximum up-scaled bitmap and scale down in flash to prevent pixelation and all (but possible initial) memory problems.

     
    |
    Mark as:
  • kglad
    72,367 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 1, 2012 10:45 AM   in reply to Jarrod Verhagen

    what code are you using to zoom?

     
    |
    Mark as:
  • kglad
    72,367 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 2, 2012 7:18 AM   in reply to Jarrod Verhagen

    good luck!

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2012 3:24 AM   in reply to kglad

    Hello,

     

    This seems to be a bug, could you please file a report at: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&promoid=E WQQL?

     

    Thanks,

    Suhas Yogin

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2012 12:25 PM   in reply to Jarrod Verhagen

    Could please use an image which is smaller in dimensions .

    Also, if you are using a file type other than PNG then please try the PNG version of the image at the same dimension (5464x3073) and check the perfomance.

     

    Thanks

    <edited to>Hyadav

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points