User Tag List

Results 1 to 3 of 3

Thread: [BUG 257-9] Drag & Drop movement laggy with Accelerometer in same frame

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac 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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [BUG 257-9] Drag & Drop movement laggy with Accelerometer in same frame

    I recently needed to use the Accelerometer Object in the same frame as an Active with DRag & Drop movement and noticed it was quite laggy in updating its position when dragged quickly on my iPod touch 4G (worked fine on my iPad 2). Weirdly, deleting the Accelerometer Object removed the lag!
    I can only assume that the Accelerometer Object is slowing down reading the mouse position, since the frame rate is still over 50 fps.

    Replacing the Accelerometer Object with the Shake Extension also removes the lag - probably because it only checks 15fps rather than the same as the frame rate.
    Perhaps the Accelerometer Object's updateInterval can be changed to 15fps rather than linking it to the frame rate (usually 60fps)?
    Seems to be controlled in CRunApp.m line 1477:

    Code:
    accelerometer.updateInterval=1.0/gaFrameRate;
    Changing to:
    Code:
    accelerometer.updateInterval=1.0/15;
    Also fixes the problem (although haven't checked to see if the Accelerometer functions properly with this change)

    I've attached an example to demonstrate the problem, although you'll need the right device, eg iPod touch 4G, as it works fine on iPad 2.
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac 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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anders, Francois, Yves - I realise you're probably busy with the Android Exporter, but any official word from ClickTeam on what's causing this bug?

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I have no idea why I missed this thread either. Sometimes this forum marks some posts and PM's as already read for me even though they are unread. I can see in the bottom of this thread "Members who have read this thread" that I haven't been in this thread before. Very odd.

    Very interesting find. This is definitely something I need to investigate. Thanks for the file!

Similar Threads

  1. Drag and drop with scaled frame
    By DJFuego in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 22nd April 2013, 07:47 PM
  2. Drag and drop movement- force drop action
    By qenio in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th April 2013, 09:53 PM
  3. Drag & Drop Movement
    By Sloxone in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 28th July 2012, 09:43 AM
  4. Drag And Drop movement bug
    By cfullerNY in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th February 2012, 04:21 PM
  5. Drag and drop movement
    By Jose3001 in forum The Games Factory 2 - Technical Support
    Replies: 11
    Last Post: 28th May 2010, 05:54 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
  •