User Tag List

Results 1 to 6 of 6

Thread: Detecting a lower spec device, eg: 2nd Gen

  1. #1
    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)

    Detecting a lower spec device, eg: 2nd Gen

    I'm making a game where I am controlling the movement of my objects. On my 4th gen device it runs at 60fps. On my 2nd gen device it is less stable and fluctuates between 40 and 60 fps.

    How can you detect if you are on an older device? I'd like to cap the FPS to 30 and then I can adjust my custom movement in my game while keeping it at 60fps for newer devices that can cope with 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
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Detecting a lower spec device, eg: 2nd Gen

    I'm afraid that for the moment, there is no way to know on which device the application runs.
    You should handle your movements based on the timer : get the time difference between the current frame and the previous one, and use this to calculate the movement in pixels. With that it will work with any fps...

  3. #3
    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)

    Re: Detecting a lower spec device, eg: 2nd Gen

    Thanks Francois - you are right, I shall try that approach.
    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 Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting a lower spec device, eg: 2nd Gen

    > get the time difference between the current frame and the previous one, and use this to calculate the movement in pixels. With that it will work with any fps...

    Is there any function/expression that allows us to fetch that delta time in one call? If not, which of the timer expressions should be used? I mean, it would be handy to have a delta time expression in the Timer object.

  5. #5
    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)

    Re: Detecting a lower spec device, eg: 2nd Gen

    I think you'd want to subtract the current "timer" value from the timer value you stored last game loop and scale your movements that way.

    See attached for a quick and dirty example.
    Attached files Attached files
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

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

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting a lower spec device, eg: 2nd Gen

    Thanks for the example!

    I figured it out but I was dividing Tnew-Told by 1000. I will use your approach and take Tnew-Told since multiplications are faster than divisions.

    Thanks a lot.

Similar Threads

  1. Good cheap low spec device for testing?
    By DistantJ in forum Android Export Module Version 2.0
    Replies: 8
    Last Post: 29th August 2012, 06:03 PM
  2. Value greater/ lower than X.5
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 19th July 2012, 06:54 AM
  3. Can't lower framerate in subapp
    By Hernan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th February 2010, 04:38 PM
  4. Distance lower than....... look at.....
    By lembi2001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th November 2008, 09:28 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
  •