User Tag List

Results 1 to 4 of 4

Thread: How fast is Array object in massive dimensions? (thousands x thousands)

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How fast is Array object in massive dimensions? (thousands x thousands)

    Title. :P

    So basically I have an array which stores every tile of the map into it, and generates the map around the player as they move. If the map were to be, let's say, 6000x3000 tiles large, and there would be 60 different tiles in the tileset, would the Array start struggling to keep up?

    Here's the app in non-mfa version if you want to take a look: http://dl.dropbox.com/u/32968627/111120.zip
    WASD to move. Just ignore whatever is going on in the game. You can see from the edges how it loads the map from the array and generates it. That's about the speed I want the array to function at, possibly in a little larger area to fill the edges too.

    My current test map is way smaller than I'm planning to expand to, and I don't know how can the Array manage larger maps.

    Also is there some limit to the dimensions or the value stored? I think I'm restricted to 8000x8000 dimensions due to other things, but I don't know how many tiles I'm eventually going to get to.



    Oh, second unrelated question;
    Is it possible to load the animations/frames/whatever to an active object from a file? I mean so that you can just change the file to change the textures?

  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)
    It should not change anything. We access the array elements by a simple multiplication, size does not affect it.
    What would be problematic, would be to insert or delete elements, but as those options are not available in the object, it is OK!

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The memory usage will increase with the size of the array, though (obviously)

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, okay thank you! I only need to change the array values one block at a time (except the initial new map file creation) so I'm not too concerned about that. I just have no idea how the object actually functions on the inside, so I wasn't sure how much I can strain it. I thought that having values from a wide range spread randomly across a very massive area would make it lag or something.

    Memory usage shouldn't be much of a problem, I was aware of that and was expecting a very memory intensive app anyway. :P

Similar Threads

  1. Array data loading fast enough?
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 30th January 2013, 06:07 PM
  2. Array and dimensions.
    By Aasland in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th April 2012, 05:26 AM
  3. Dimensions in binary array
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 4th May 2011, 11:59 PM
  4. Using IC to copy thousands of files from CD to HD
    By mmcap in forum Install Creator and Patch Maker
    Replies: 6
    Last Post: 31st March 2008, 05:22 PM
  5. Fast loop & array
    By scaneider in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 12th March 2007, 01:42 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
  •