User Tag List

Results 1 to 7 of 7

Thread: Dynamically allocated 3d array?

  1. #1
    No Products Registered

    Join Date
    Sep 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dynamically allocated 3d array?

    Just out of curiosity, I was wondering if any of the multitude of Array objects out there, do any of them support dynamic reallocation (preferably with the preservation of data)? I'm really only familiar with Clickteam's Array object, so I don't know if everyone's been using one of the other Array objects for purposes like this.

    Alternatively, do system resources take a hit if the standard Array is specified to a very large number (like 1000x1000x1000)? I know that writing such an array to the hard drive takes up an insane amount of space, but I don't know how the same array is allocated in memory from MMF.

    Thanks :3

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Dynamically allocated 3d array?

    The Dynamic Array that comes with the bonus packs supports 3D arrays.

    A 1000x1000x1000 number array takes up approx. 4*1000³ bytes in memory and as file - that's 3.8 Gb!

  3. #3
    No Products Registered

    Join Date
    Sep 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dynamically allocated 3d array?

    eeeep! That's a lot of memory! I'm assuming that Dynamic Array wouldn't do that, even with that many cells?! MMF Arrays must have a pretty big preset cell size to be that large :crazy:

    Thanks for the information, I will look into Dynamic Array.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Dynamically allocated 3d array?

    The cell size is, as you can take from my formula, 4 bytes. a 32-bit integer.

  5. #5
    No Products Registered

    Join Date
    Sep 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dynamically allocated 3d array?

    ah, I should've known that :crazy:

  6. #6
    Clicker Multimedia Fusion 2 Developer

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

    Re: Dynamically allocated 3d array?

    If you want to work with that much data, you'll have to only keep part of it loaded and load/unload as needed. It's not easy to get right...

  7. #7
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Dynamically allocated 3d array?

    What is the problem it you are trying to solve? Perhaps we can help you work out a more efficient method?

Similar Threads

  1. error: statically allocated instance of Objective-C class 'BoidType" at build
    By MTCMusic in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 27th February 2013, 12:03 PM
  2. lua dynamically instantiate
    By nuvorm in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th March 2012, 02:47 PM
  3. Beta 4: Dynamically changing controls
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 4th November 2010, 09:59 PM
  4. dynamically changing scroll speed of the frame
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 36
    Last Post: 1st June 2008, 12:40 AM
  5. Dynamically creating and positioning edit boxes
    By shotymac in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th November 2007, 01:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •