×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    63

    Question App memory usage jumps in higher resolutions

    I have a Windows Phone 8 app that uses a lot of images in LongListSelectors that sit upon a Panorama control. After a lot of optimization, I managed to get my memory utilization to hold steady around 80MB or less in WVGA mode. I read that WP8 apps should not exceed 90MB. However, when I switch to the 720p or WXGA mode, the memory usage jumps to 120MB.

    Is the 90MB limit something I need to worry about on the phones that support the higher resolutions?

    If so, should I mark my app as WVGA-only in the Windows Phone store?

    Is there anything I can do to eliminate this memory jump in the higher resolutions?

    -- roschler

  2. #2
    Registered User
    Join Date
    Nov 2013
    Posts
    29

    Re: App memory usage jumps in higher resolutions

    try using the decodepixelwidth and decodepixelheigth, that way your image will get decoded into a new size instead of just scaled
    http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx

    also, if I'm not mistaken, the 90MB limit is WP7, these are the WP8 limits
    http://msdn.microsoft.com/en-us/libr...v=vs.105).aspx

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    422

    Re: App memory usage jumps in higher resolutions

    It's unavoidable that your App will take up more space on higher resolution devices than on WVGA devices, given that the visuals that are being rendered in the higher resolution will have to be kept in memory for display. It's also the reason why all devices having more than a WVGA resolution are mandated by Microsoft to have at least 1 GB RAM.

    Therefore your App should not run into trouble. The limits Nico linked you to are correct for WP8.

    If you had issues with running into the memory cap you would notice as soon as you ran your App without the Debugger attached, as WP8 will terminate an App that exceeds it's memory limitations if it's not being debugged at that moment.

  4. #4
    Registered User
    Join Date
    Mar 2013
    Posts
    63

    Re: App memory usage jumps in higher resolutions

    @NicoVermeir and @SB Dev,

    Thanks, that's good to know.

    -- roschler

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    602

    Re: App memory usage jumps in higher resolutions

    Though I don't know exactly what your app does or show I think 120MB heap is A LOT.
    if you have a very long list of items for a LongListSelector you should try and lazy load the images based on what part of the list is visible.
    Heard of DVLUP? Join here

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    475

    Re: App memory usage jumps in higher resolutions

    Sounds like a memory leak problem. A list of pictures shouldn't eat up all that RAM.

    You could run the performance tools for Windows Phone and watch the memory use over time?

    http://msdn.microsoft.com/en-us/libr...v=vs.105).aspx

Similar Threads

  1. Memory Usage by UID
    By ManuMies in forum Symbian C++
    Replies: 6
    Last Post: 2010-11-15, 04:28
  2. Memory usage
    By Bill_Murray in forum Symbian C++
    Replies: 6
    Last Post: 2008-02-08, 10:03
  3. Usage of memory
    By mcwo in forum Mobile Java General
    Replies: 0
    Last Post: 2007-04-17, 11:31
  4. Q: List jumps to Letter
    By schwarzer_peter in forum Mobile Java General
    Replies: 3
    Last Post: 2005-12-23, 17:37
  5. Memory usage...
    By brain_dead00 in forum Symbian C++
    Replies: 1
    Last Post: 2004-02-24, 05:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •