User Tag List

Results 1 to 9 of 9

Thread: String object frame rate drop.

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF 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)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    String object frame rate drop.

    To me this is an odd problem, and it isn't consistent at all.

    Sometimes my app will drop from 60 down to 30 fps for a split second when I change the text of a string object, and it seems to happen most when the screen is also scrolling.
    Most of the time it only happens the first time the text is changed. After that I can change it over and over with no frame rate penalties.

    Sometime the frame rate drop won't occur at all.

    This is using an iPhone 4.. on the iPad 2 this problem is nonexistent.

    Is there anything I can do about this?

    UPDATE: I paused my screen scrolling when displaying a string and the lag is gone.

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Is your string object bigger than it needs to be to display the string in your game? Resize it to fit your string better and it will be faster. Some people are tempted to size the object as big as the screen just for convenience but it will slow down the process of changing the string.

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF 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)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No it's just big enough to display the text.

    I've fixed the issue by pausing the scrolling when the string is displayed.

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF 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)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ok, so I was still having lag while in-game even though I fixed the string display slow down.

    Well I had a hidden string offscreen that contained a character map for loading level arrays.
    After deleting that and moving the string to a Global String the framerate jumped to 60 fps consistent.

    So it seems even hidden strings have a huge performance drop.

    This is odd. I really think there is something wrong with the way the string object is built.
    IT is literally the only thing that lags my apps.

    UPDATE: I just discovered that making a string object blank whether hidden or not will negate any performance problems that it causes.
    So it doesn't effect framerate as long as it isn't storing any text. O_o

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Remember that fonts are vector, so it needs to render them in a different way, so strings are a lot more memory intensive than you might think; it's best not to use more than you need.

  6. #6
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I will have a look at the hidden string performance problem. They shouldn't cause any slowdown when they are hidden. If they do then there is something wrong

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF 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)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yes, it was a hidden string causing the slow down oddly.

    Also the frame loads faster now. It loads pretty much instantly now. Before it took a few seconds.

    Removing the string completely fixed my game.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Maybe it's allocating the memory it shouldn't be?

  9. #9
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF 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)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    More than likely it's using more CPU than it should.
    But it's prolly a combination of both.

Similar Threads

  1. iPhone 5 app frame rate drop bug [beta 8]
    By UrbanMonk in forum iOS Export Module Version 2.0
    Replies: 19
    Last Post: 13th February 2013, 09:24 AM
  2. Flame Object and Frame Rate
    By ToffeeandPebbles in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd April 2010, 05:17 PM
  3. Increase at same rate with FPS drop.
    By izac in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd January 2010, 03:12 PM
  4. Frame rate use Sub-Application Object
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th January 2008, 06:56 PM
  5. Making an enemy drop-rate
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th August 2006, 05:53 AM

Posting Permissions

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