User Tag List

Results 1 to 8 of 8

Thread: Set number of objects? what for?

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Set number of objects? what for?

    Hi,

    Each frame allows you to configure the Nr. of objects.
    If i set it to 100, and i make 200, only 100 apear.
    What if i just set it to the MAX.
    And why isn't it on MAX by default?
    Whats the point?

  2. #2
    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: Set number of objects? what for?

    Memory. The higher the max value is, the more memory it will allocate for use. So if you have alot going on, the application might be faster if you reduce the value.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set number of objects? what for?

    The higher you set this, the more system resource your application will require to run. It's set at a nice round number and can easily be up-ed if need be.
    KnightTrek Productions
    http://www.knighttrek.com

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Set number of objects? what for?

    Umm.. no, it doesn't preallocate the memory as far as I know.

  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: Set number of objects? what for?

    I think it is... If not, I don't understand why there is a maximum number (20000).

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Set number of objects? what for?

    It doesn't- try running the application with the max limit set to 50 and then changing it to 20000 and running it again. Same amount of memory.

    I was only looking at the MMF2 debugger, so it could be that it did take up more memory but less than a MB- in that case, it wouldn't matter if the limit was set to 20000 by default anyway.

    I think it is set low by default as a safety measure so that you can't create enough objects to make things grind to a halt.

  7. #7
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set number of objects? what for?

    Quote Originally Posted by Jam
    I think it is set low by default as a safety measure so that you can't create enough objects to make things grind to a halt.
    Thats what I think too, one wrong thing and your object count goes up at runtime and there goes the memory.

    Would love to see a small pop up on the debugger letting me know I reached my object limit, then this would be quite useful and I would not just set the limit to 5k from the beginning.

  8. #8
    Clicker Multimedia Fusion 2 Developer

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

    Re: Set number of objects? what for?

    The memory that is permanently reserved for all objects is on the order of 8 bytes each. So 200 objects is 1.6kB, and 20000 objects is 160kB.

    When an object is created into a slot, the memory needed for the instance is requested, and referenced in those 8 bytes. The memory for an object instance is on the order of 1.1kB each (including 416 bytes for alt. values). So 20000 created objects is about 22MB.

    It's possible that in an earlier version of the runtime (TGF or KnP), the memory for object instances was pre-reserved, so a 20000 object limit would result in 22MB in use, instead of 20000 currently created objects. This would likely have been before extensions, when the size of the largest object instance was known.

Similar Threads

  1. Number of Objects?
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 5th August 2008, 08:19 PM
  2. 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
  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
  •