User Tag List

Results 1 to 10 of 10

Thread: Lag issue

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Lag issue

    I've noticed a lag with mmf iOS games every now and again but could never quite put my finger on it. Some people have reported this as a delay or lag on the touch controls of upto half a second.

    I've now got an iPad to test with and I'm spotting a repeatable pattern to this lag. In a simple game with a few active objects, background objects, multiple touch and accelerometer objects and the platform movement object, with not many events and with no common gotchas like fast loops or large images/memory use, I see the lag every time I restart my game after powered up. If I press the home button to close the game and then restart it, the lag disappears and runs at normal speed.

    http://www.youtube.com/watch?v=Jsih0gGXMR8

    In the above you tube video I wake up the iPad and start the game. The fps is around 40 and the touch joystick is slow and sluggish. Tap the home button and then restart the game and now the fps is around 60, the animation is noticeably smoother and the touch joystick is smooth and responsive. The game will play fine from this point onwards. However if I put the iPad to sleep and wake up again, the game is slow on first run once again.

    No other (non MMF) game appears to have this problem. I've seen this happen on the itouch too although not in a repeatable way. I have a bigger almost complete game that will sometimes exhibit this lag on my itouch, not yet tested on the iPad. I can't say I've noticed this on cave diver or just survive. Not sure what conditions my two games have in common that shows up this lag...maybe the color reduction setting? Maybe having multiple touch and accelerometer objects in the frame? Not sure what else the two games have in common?

    I can post this game over to you Andos, Francois if it will help (pm where to email it).
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It used to happen to me when I had joystick and accelerometer objects on the frame. Since I was using my own controls, I set the device to none (on the iOS joystick options of the MMF editor) and destroy the accelerometer object when it is not needed. And of course I am using the latest beta targeting ARM7 devices, only.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Seems to be a constant problem on the iPad. I see it in a frame with only a counter and just an event to test for mouse click and another event to set the counter with the FPS value.

    In my game I have found a work around, but it's not good for the game and I guess it's no guarantee it won't come back due to the random nature of the problem. I'm testing for the reactivation of the app and then issue a "restart the application" action. I've put a blank frame at the start, which will still report 40fps but when changing frames it will return to 60fps. So far this is working but it does mean the game always restarts when it wakes up.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This is EXCELENT legwork and a critical discovery. Why has no one else commented on this thread? Good job AndyH! Good Tip too BHGames.

  5. #5
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    We have been talking over PM so this is why this thread have been a bit quiet

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

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    cool. Good to know its in good hands. Thanks for the inof Andos.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    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)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I think i am getting performance issues when closing the App using the big round button (no idea of its name..lol), and then going back into the app.

    Is this related?

    Edit: Ah looked at the tech docs... the HOME button

  8. #8
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Jason: Is this for app already compiled and running only on the device (not connected to the Mac) - or does it only happen while debugging the app? Does changing the build-mode to "Release" instead of "Debug" help? (In XCode 4.2 you do that by editing the project "Schemes" I think they are called)

  9. #9
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Jason. Similar to the issue i get except it slows down after pressing the power button and switch back on, the app runs slower. Press home then restart the app and it returns to normal speed.

    I have tried release mode and disconnected from the machine but it is the same.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    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)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Andos: This is an already compiled and released app.

Similar Threads

  1. HWA issue
    By Panchos in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th December 2013, 12:20 PM
  2. Not sure if I'm the only one who has this issue...
    By LavaFlaminG6 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th June 2013, 12:48 AM
  3. Counter updating issue or code issue?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th March 2013, 01:48 PM
  4. Ini++ Issue
    By Blood_Wist in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 16th March 2009, 04:46 PM
  5. dll issue
    By cel in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th December 2006, 09:12 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
  •