User Tag List

Results 1 to 10 of 10

Thread: Number of Objects?

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Number of Objects?

    So you can set the maximum number of objects on frame to any number. I was just wondering, what is the point of this? Is it purely to stop too many objects being created? Or does setting the number lower help speed up the application or something?

  2. #2
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    Some games tend to lag with many objects on the screen, so that limit is in place. It can be changed if a game requires more though, so it is more of a safety precaution.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2007
    Location
    Poland
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    I think there should be a option to check (or not) "Use limit of object"

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    Someone please correct me on this, but I think MMF reserves an ammount of memory depending on the object limit. So if you set it to 10.000, it will use more memory and be slower even if you don't have 10.000 objects on screen.

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    That was what I was thinking Popcorn, if this is true then I will want to optimize the 'Number of Objects' for each frame.

  6. #6
    No Products Registered

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

    Re: Number of Objects?

    i've never noticed any different memory usage or speed difference... it's probably just there to help prevent you from creating more objects than you need

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    From the Help file...

    'Number of objects
    Enter in this line the maximum number of objects of the frame. From 100 to 20000. Of course, 20000 objects will be slower than 100.'

  8. #8
    No Products Registered

    Join Date
    Jun 2007
    Location
    Croatia
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    Quote Originally Posted by Mantoid
    Of course, 20000 objects will be slower than 100.'
    I believe this is to say that having 20000 actual objects would be slower than having only 100, not that it would be slower only by setting the limit.

    Now, two things must be separated.

    First is the speed and the second is memory requirements.

    If setting the limit to 20000 objects actually creates an array of pointers to later created objects, this would not make things any slower, it would only require more memory.

    I am completely sure that by setting the limit, maybe (if at all) only memory for a pointer memory (4 bytes for each object). Since it is unknown what kind of object will be created, making only a pointer makes any sense, if needed at all. Maybe MMF is saving some kind of metadata so the memory taken is a bit larger than only a pointer, but that's not something I would know...

    Setting the limit to the maximum didn't make any of my frames run slower, so I guess, nothing except limit actually happens.

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    MMF does reserve the space for all the objects at the start.

    EDIT: Well, not quite. It reserves a very small amount of space to record common info for all the objects, because the objects themselves differ in size it can't preallocate space for them.

  10. #10
    No Products Registered

    Join Date
    Jun 2007
    Location
    Croatia
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Number of Objects?

    Quote Originally Posted by Dynasoft
    MMF does reserve the space for all the objects at the start.

    EDIT: Well, not quite. It reserves a very small amount of space to record common info for all the objects, because the objects themselves differ in size it can't preallocate space for them.
    Yeah that's what I meant by "metadata"... some data that is relevant to any object...

Similar Threads

  1. Number of objects to pick up?
    By Roseweave in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th February 2008, 07:16 PM
  2. Set number of objects? what for?
    By Patrick in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 6th January 2008, 12:34 PM
  3. Max number of objects
    By Nick in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th October 2006, 07:38 PM
  4. Number of objects limit?
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th October 2006, 03:17 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
  •