User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: 'Create Object' is pausing game

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2013
    Location
    Rio de Janeiro, Brazil
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    'Create Object' is pausing game

    Hi!

    I have a problem with 'Create Object' under Android.

    I'm creating enemies (Active type) off-screen and am having them scroll right-to-left (Bouncing Ball behaviour). They position themselves randomly at the Y-Axis. All of this works like a charm, except every time a new object is created, the game pauses for split second.

    The graphics I'm using are very basic, no textures, so memory use should be minimal.

    This system seemingly works just fine when run from Windows, but running on my Motorola Razr XT910 results in the momentary pause when a new object is created.

    Is this a new bug with CF 2.5?

    Anyone know a better way to do this?

    Note: based on Jaklar user issue.

    Thanks,
    Ulisses.

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,905
    Mentioned
    116 Post(s)
    Tagged
    2 Thread(s)
    can you post an MFA to test here, that could happens if the amount of memory required for the new enemy is big enough that make the garbage collector to work, if this is case try to reduce size.

    also please post a log from your devices when running your creation, this is helpful to understand what is happening there.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2013
    Location
    Rio de Janeiro, Brazil
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fernando, please check this link:

    http://www.ulissescappato.com/downlo...ate_Object.zip

    Thanks,
    Ulisses.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,905
    Mentioned
    116 Post(s)
    Tagged
    2 Thread(s)
    Ok, checked, there are two things

    1.- Use the fire N-Events action for better precision instead of event Every 1".

    2.- "Active is getting close to edge 0 pixel", make the runtime to start the verification since the creation of the first object because is too close to edge, see that if you change to -10 or something it will behave better


    Remember android is not as fast as a PC.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2013
    Location
    Rio de Janeiro, Brazil
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fernando, thanks for your support.

    I made the changes, but it didn't work. I have updated the file. Please, check it: http://www.ulissescappato.com/downlo...ate_Object.zip

    On each 'Create Object', framerate decreases 60 to 42 FPS. I have a quad core mobile phone and it couldn't happens with a simple project like this one...

    May you help me? Is it a bug?

    Thank you so much,
    Ulisses.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ulisses,
    I just tried your example and on my Samsung Galaxy Nexus the framerate dips to around 45 each time an object is created.

    Though i noticed If you change the Collision Shape in the Objects Physics Properties from "Shape of first Image" to "Box", this completely eliminates it and frame rate is dropping a mere 1-2 FPS every time one is created (sits between 58-60 FPS)

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2013
    Location
    Rio de Janeiro, Brazil
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, macca02. I'll try it. But probably I'll need a fine detection collision...

    I'll be back to report if it worked. :-)

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2013
    Location
    Rio de Janeiro, Brazil
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't test yet, but I think that it's a bug on 'Create Object'.

    The game "pause" on this moment only. During the game it's OK, run fast.

  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,905
    Mentioned
    116 Post(s)
    Tagged
    2 Thread(s)
    Ulisses

    create object takes time, need to read the image, create the texture and draw it, and sure that takes time even if done using c language to speed up thing.

    but what is strange that is pausing your game, you should see a slow down for an instance but not a pause.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  10. #10
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm seeing this too on a slower android device. But I am creating many and they contain animation with an alpha channel so it makes sense that it would introduce a delay. The delay is ever so brief though but is noticeable. I think in my case I will try creating several of these objects and hold them off screen until I need to use them which should hopefully speed things up again.

    I get no slow down on my medium to higher end Android devices, just this lower spec phone.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Create Object is Pausing Game
    By Jaklar in forum iOS Export Module 2.5
    Replies: 3
    Last Post: 22nd February 2014, 08:25 PM
  2. About Pausing game
    By bravekitten in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th September 2013, 04:17 PM
  3. FPS drop/increase after pausing a game
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 20
    Last Post: 13th February 2013, 08:24 PM
  4. Game Pausing
    By HyperspazzMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th May 2008, 05:48 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
  •