User Tag List

Results 1 to 6 of 6

Thread: Collision detection optimisation?

  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)

    Collision detection optimisation?

    Hi

    I remember a while ago (back in MMF1.5) it was mentioned that using fine collision is a little faster than not using it (ie: using box collision instead). Is this correct and still the case?

    I'm wondering in what order of speed (quickest first) the following types of collisions would be:

    Fine collision against fine collision
    Fine collision against box collision
    Box collision against box collision

    I'm not experiencing any speed issues, but as my game gets bigger I think I might benefit from keeping things like this as efficient as possible.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision detection optimisation?

    i think box collisions are the fastest, since you could just compare boundaries and not individual pixels

  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)

    Re: Collision detection optimisation?

    Well that's what I thought originally, but I'm sure someone (was it Yves) said that fine collisions were actually a little faster? But that is why I'm asking now so I can be sure
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Collision detection optimisation?

    Did I say that? I think box collisions are faster (as the fine collisions are detected only if a box collision occurs).

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision detection optimisation?

    I think Box collisions are faster too because a collision mask is created for fine collisions and this creation can take some time on some objects.

    Fine collision against fine collision : 2 collision masks are created and tested => slowest
    Fine collision against box collision : 1 collision mask is created and tested
    Box collision against box collision : 0 collision mask is created and tested => fastest

    I work on some objects and they are faster if "fine collision detection" is disabled.

    The speed difference should be more visible for very big objects.

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

    Re: Collision detection optimisation?

    Thanks all. Yes, that's what I thought and makes sense. I think it was about the speed difference of fine to box collisions v fine to fine back in MMF1.0, so a little longer ago, if I remember correctly.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

Similar Threads

  1. Possible bug in PMO collision detection
    By K1kk0z90 in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 4th August 2011, 01:56 PM
  2. détection collision
    By graboide in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th December 2010, 05:24 AM
  3. Movement and Collision Detection
    By Tuna in forum Lacewing
    Replies: 8
    Last Post: 25th May 2009, 01:36 PM
  4. [BUG] Fine collision detection
    By Sphax in forum File Archive
    Replies: 1
    Last Post: 6th August 2007, 09:54 PM
  5. Collision detection
    By Crash86 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 1st April 2007, 04:50 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
  •