User Tag List

Results 1 to 4 of 4

Thread: android bad string performance

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    android bad string performance

    The strings seem to really slow down android apps,

    I have about 20 strings on screen being overall constantly changed and have frame drops to 50...

    Is there any way to speed things up?

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,749
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    this is true, since string are also texture graphic so each change require to make the texture and draw it. if you extensively done, this will make destroy the texture, make the string, create texture and draw it and the ugly part is that destroying that texture call the "garbage collector", happens that if the device have enough RAM memory that is not a problem and you will not feel any drop down but if is a phone with 512 MRAM and you have several task running, for sure it will impact your development.

    are you using "always" for changing this?, if this is true, did you try create a "true event" condition where this is done only once when need it?
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is done only once i need it, but i need it a lot when the app is scrolling down or up fast, as it is a list and the strings change from the database.

    I have found that changing just one string with newline$ instead of changing 5 different strings helps quite a lot i gained about 10-20 fps on all devices i tested.
    Also 2 of these phones are pretty good and have more than enough free ram, but still have frame drops.
    Anyways currently i have better fps than before, but id still like it to be better if possible.

    Here is the mfa if you want to take a look: https://dl.dropboxusercontent.com/u/...Androtets7.mfa

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,749
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    To make your string in one string is a wise solution, that reduce the garbage collector.

    i will test your ".mfa" here with several devices to see the frame rate.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. String parser and performance
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th May 2014, 02:40 PM
  2. string parser sous android
    By Rached MILADI in forum Android Export Module 2.5
    Replies: 3
    Last Post: 20th May 2014, 09:14 PM
  3. Performance problem on android
    By gnodab2 in forum Android Export Module Version 2.0
    Replies: 10
    Last Post: 2nd April 2014, 10:12 AM
  4. Megaloop for Android, performance test! :)
    By Popcorn in forum Android Export Module Version 2.0
    Replies: 25
    Last Post: 7th April 2013, 09:32 PM
  5. [Need] String Tokenizer for Android
    By Pharanygitis in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 4th May 2012, 02:01 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
  •