User Tag List

Results 1 to 9 of 9

Thread: Android Performance (Reinit Display)

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    AlanRuno's Avatar
    Join Date
    May 2013
    Posts
    334
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Android Performance (Reinit Display)

    Whenever I minimize an android app and then open it up again, it takes too much time to get back to the app.
    I saw the adb logs and I have lots of:

    D/dalvikvm(19948): GC_FOR_ALLOC freed 1552K, 36% free 8999K/13868K, paused 32ms, total 32ms
    I/MMFRuntime(19948): About to reinit display ...
    D/dalvikvm(19948): GC_FOR_ALLOC freed 1703K, 36% free 8999K/13868K, paused 30ms, total 30ms
    I/MMFRuntime(19948): About to reinit display ...
    D/dalvikvm(19948): GC_FOR_ALLOC freed 1652K, 36% free 8999K/13868K, paused 29ms, total 29ms
    I/MMFRuntime(19948): About to reinit display ...
    D/dalvikvm(19948): GC_FOR_ALLOC freed 1704K, 36% free 8999K/13868K, paused 29ms, total 29ms
    I/MMFRuntime(19948): About to reinit display ...

    Is there a way to make this faster? I takes 10 seconds to get back to app on slow devices.

  2. #2
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    wpd's Avatar
    Join Date
    Nov 2015
    Location
    SE Asia
    Posts
    404
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)
    dont support slow devices.
    very few are using those android 2.3-3.0 , should stop supporting it. it's more of a problem for us, than of help

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    AlanRuno's Avatar
    Join Date
    May 2013
    Posts
    334
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello wpd, actually i'm talking about 4.1 devices.
    I dropped support for 4.0 - a long time ago.
    I have a testing device, moto g 2nd gen which is pretty good (4.2 android) , and it takes 10 seconds to load, which is really weird.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,048
    Mentioned
    130 Post(s)
    Tagged
    3 Thread(s)
    @Alan,

    weird this depends on garbage collector from each devices, is this a phone with less than 1 GB ram?

    I have here some 4.2 devices how can I reproduce this, please post the steps to reproduce here.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    AlanRuno's Avatar
    Join Date
    May 2013
    Posts
    334
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Just install this app

    https://play.google.com/store/apps/d...reysevaenlinea

    Get into the main lobby, then at the store, buy at least 3 lottery tables, then get back to lobby.
    Then minimize the app, open another app, then get back to my app.
    It takes a lot of time to get back to it.

    My test device is a moto e with 4.4.2 android and 1GB RAM.

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,048
    Mentioned
    130 Post(s)
    Tagged
    3 Thread(s)
    hmm but you are plenty of active picture this only happens when you return from pause, since need to clean the texture and repaint. (texture is not valid when go to pause)

    05-25 23:30:01.535: I/MMFRuntime(12015): onResume
    05-25 23:30:01.537: I/MMFRuntime(12015): Thread Thread[main,5,main] updating viewport
    05-25 23:30:01.537: I/MMFRuntime(12015): Android.MMFRuntime updating viewport - width 1200, height 1920
    05-25 23:30:01.537: I/MMFRuntime(12015): Updating window dimensions to 640x960 (scaled 1.875, 1.875)
    05-25 23:30:01.538: I/MMFRuntime(12015): uV: initialUpdateDone true, GLRenderer is OpenGL.ES2Renderer@5604da6
    05-25 23:30:01.538: I/MMFRuntime(12015): Setting renderer limits...
    05-25 23:30:01.546: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.546: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.546: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.546: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.546: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.546: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.547: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.548: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.549: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.550: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.551: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.552: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.553: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.554: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): Active Picture reinitDisplay(), but no inputStream to load from? this is important which images is this? is not ready when come back from pause
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.555: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.556: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.556: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.556: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.556: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.556: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.556: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.556: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.557: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.557: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.557: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.557: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.557: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.557: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.557: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.558: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.559: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.559: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.559: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.559: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.559: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.559: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.560: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.560: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.560: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.561: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.561: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.561: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.561: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.561: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.562: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.563: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.563: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.563: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.563: I/MMFRuntime(12015): CRun: resume()
    05-25 23:30:01.563: I/MMFRuntime(12015): setFrameRate to 60
    05-25 23:30:01.563: I/MMFRuntime(12015): Interval setting...
    05-25 23:30:01.565: I/MMFRuntime(12015): About to reinit display ...
    05-25 23:30:01.565: I/MMFRuntime(12015): Active Picture reinitDisplay(), but no inputStream to load from?
    05-25 23:30:01.575: I/MMFRuntime(12015): --- onMeasure for Runtime.MainView{ea226a5 V.E...... ......ID 0,0-1200,1920 #1} (currentWidth 1200, currentHeight 1920)
    05-25 23:30:01.575: I/MMFRuntime(12015): --- onMeasure for Runtime.MainView{ea226a5 V.E...... ......ID 0,0-1200,1920 #1} (currentWidth 1200, currentHeight 1920)
    05-25 23:30:01.639: I/MMFRuntime(12015): --- onMeasure for Runtime.MainView{ea226a5 V.E...... ......I. 0,0-1200,1920 #1} (currentWidth 1200, currentHeight 1920)
    05-25 23:30:01.642: I/MMFRuntime(12015): --- onMeasure for Runtime.MainView{ea226a5 V.E...... ......I. 0,0-1200,1920 #1} (currentWidth 1200, currentHeight 1920)
    05-25 23:30:01.643: I/MMFRuntime(12015): Thread Thread[main,5,main] updating viewport
    05-25 23:30:01.643: I/MMFRuntime(12015): Android.MMFRuntime updating viewport - width 1200, height 1920
    05-25 23:30:01.643: I/MMFRuntime(12015): Updating window dimensions to 640x960 (scaled 1.875, 1.875)
    05-25 23:30:01.643: I/MMFRuntime(12015): uV: initialUpdateDone true, GLRenderer is OpenGL.ES2Renderer@5604da6
    05-25 23:30:01.643: I/MMFRuntime(12015): Setting renderer limits...
    05-25 23:30:01.684: I/MMFRuntime(12015): --- onMeasure for Runtime.MainView{ea226a5 V.E...... ......ID 0,0-1200,1920 #1} (currentWidth 1200, currentHeight 1920)
    05-25 23:30:01.684: I/MMFRuntime(12015): --- onMeasure for Runtime.MainView{ea226a5 V.E...... ......ID 0,0-1200,1920 #1} (currentWidth 1200, currentHeight 1920)
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    AlanRuno's Avatar
    Join Date
    May 2013
    Posts
    334
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    So I should have less active pictures?
    Or what else could I do?
    Maybe destroy most of the pictures and re-create them slowly on back.

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,048
    Mentioned
    130 Post(s)
    Tagged
    3 Thread(s)
    No, this is totally normal.

    next version I will remove the log from Active Picture object so it will no be listed in logcat

    about the garbage collector is normal , see that my devices does not need to do that, your 1 GB ram, become in your case and depends on the application in background to 584 MRAM.

    also I tested your game in a small Samsung ACE4 a small device really and this game runs just fine ( esta Padre). this Samsung behave just like nexus 7 above

    so I am very happy a multigame with plenty of extensions and extensive use of runtime, and runs fine.


    Is still verbose in logcat for debugging features but once stable I will clean all of them.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  9. #9
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    AlanRuno's Avatar
    Join Date
    May 2013
    Posts
    334
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you, fernando!
    Well, then I will keep the game as it is right now, I'll check out what else I can do to increase performance.
    I like how you are always there for us, helping out whatever you can, thank you so much for that!
    Cheers.

Similar Threads

  1. android bad string performance
    By Skyhunter in forum Android Export Module 2.5
    Replies: 3
    Last Post: 17th January 2015, 02:38 PM
  2. Performance problem on android
    By gnodab2 in forum Android Export Module Version 2.0
    Replies: 10
    Last Post: 2nd April 2014, 09:12 AM
  3. Megaloop for Android, performance test! :)
    By Popcorn in forum Android Export Module Version 2.0
    Replies: 25
    Last Post: 7th April 2013, 08:32 PM

Posting Permissions

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