User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: Anyone else getting slow downs when using 160+ Objects each with their own Arrays?

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    As far I know INI or Array has no bearing on Clickteam Fusions' performance, Even at 20,0000 active objects running at once
    Fusion isn't using 4% CPU cycles. Would you be able to post an example to have a look?

    Would be able to post an example? I'll take a look, see if can find what the root of the challenge your experiencing.
    If don't want to share the source, you can PM me the an example.


  2. #12
    Clicker

    Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sparckman View Post
    As far I know INI or Array has no bearing on Clickteam Fusions' performance, Even at 20,0000 active objects running at once
    Fusion isn't using 4% CPU cycles. Would you be able to post an example to have a look?

    Would be able to post an example? I'll take a look, see if can find what the root of the challenge your experiencing.
    If don't want to share the source, you can PM me the an example.

    Sad to say I had deleted it, but all I did was run a fast loop on each object at the start, create an array, when each object was created, and set the first X in each one to the unique ID alt value per each. It takes quite a few for each loops but is very simple to do. Snail said it. And again for each loops to get back the same unique value. for loops dont seem to have any specific differentiating value even when using unique values? Even then I think the problem is a for loop still needs to run number of X array Count times to loop them all so you just end up using a for each loop anyway..

  3. #13
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    I'm using about 1500 array files 7 arrays at the same time with a range from 1..900 items within.
    Combined with this, I am using a lot of loops, and it's loading instantly for me.. Not seeing any slowdowns etc.
    And on top of that.. based on the amount of items in the array, it's creating an active.. Usually I have between 1200 - 2400 actives at once on my screen.
    loads within milliseconds, unless i am missing something here??

    As for INI's.. They are fast as well.
    Clearing individual items is somewhat slower. but not a showstopper.

  4. #14
    Clicker

    Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Snail View Post
    This is actually the perfect example for you right now: http://community.clickteam.com/threads/93817-Array-of-actives-for-a-scrolling-level

    How would you write those tiles to a storage file and then load them back?
    I am working on it, so far I've decided to expand an array with the amount of tiles and simply catalogue each actives current x and y and then I guess I will have to destroy them all and run a for loop that recreates the same active and with its same animation frame at each position with a for loop through the array. i admit i am unfamiliar with all the commands in fusion so its taking me awhile as I figure out a bunch of other stuff im doing. should I figure it out ill post a .mfa in that thread.

    Quote Originally Posted by Perry View Post
    I'm using about 1500 array files 7 arrays at the same time with a range from 1..900 items within.
    Combined with this, I am using a lot of loops, and it's loading instantly for me.. Not seeing any slowdowns etc.
    And on top of that.. based on the amount of items in the array, it's creating an active.. Usually I have between 1200 - 2400 actives at once on my screen.
    loads within milliseconds, unless i am missing something here??

    As for INI's.. They are fast as well.
    Clearing individual items is somewhat slower. but not a showstopper.
    I am having trouble figuring out how to use the ini ++, do I need to create the files first? the example wont load without the Move With Bezier.mfx. So I dont understand how to generate new Inis or rtf files or csvs. Am I right to say you just use loops to choose when to use certain arrays? maybe by counting 7 at a time in an index of objects such as 10000 objects, every 7 set to a global, loop from this global value at the end add 7, loop from the next set of objects with the id's 1-7, 8-14, 15-21? it is beyond me. perhaps I will recreate this and see what I did wrong.

  5. #15
    Clicker Fusion 2.5
    Bertard's Avatar
    Join Date
    Jan 2014
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I prefer use ini because it's more easy to detect a mistake . If i do an error i can check with blocknote directly on files .

    For my game, i must to save
    X position of tiles
    Y positon of tiles
    Type of tiles
    Y of level begin
    Y of level end 1
    Y of level end 2
    Number of tiles

    I don't think array can save all because there is 3D only

    After, program with array is faster than ini

    Sorry for my english

  6. #16
    Clicker

    Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok since it is bloated anyway I will, if not ill try and remake it i deleted the recent version so lets hope I saved the older one

  7. #17
    Clicker Fusion 2.5
    Bertard's Avatar
    Join Date
    Jan 2014
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can show you ini files for moment because mfa is in developement

    Tell me if you cannot access to the link

    Ini is write on frensh (my language) but you can understand without problem

    https://www.dropbox.com/home?preview=Niveau+1

  8. #18
    Clicker

    Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I have deleted all versions of this without backing it up. Oh well but I remember the process:

    Start Loop CreateActive X number of times

    On loop

    Make Active
    Create Array
    Add 1 to global_number
    set Active AltVal A to global_number
    set Active AltVal B/Unique to random(1, 10)
    create number array
    set Value at 1 on X to Active AltValA
    set Value at 2 on X to Active AltValB

    now this second part is a bit confusing to remember because i could have done it multiple ways... but basically i create a string array it may have been consequential in a for loop event above which triggers a for each loop or I may have just created it in this same event..

    so right after above loop create this loop

    Start Loop createstringstoowner 1 time

    On loop createstringstoowner
    start for each loop number arrays CreateSisterStringArraysToOwner


    On each number array, do loop CreateSisterStringArraysToOwner
    create string array
    set at 1 on X to str$(val(numberArrayValue(At X 1)) // This is just converting the value found at the X 1 slot on the number array to a string to be converted later when compared


    later of course I must run a for each loop on each string array to check another for each loop on each number array to test the different values for Alt val B stored and if it = a certain value write a unique string which is like

    For each numarray
    start for each on stringarrays //I think I did an event like this to pick both

    numarray value at 1 on X = val(str$(my string value ID value) // choosing same
    numarray value at 2 on X = 2 or 10 whatever // choosing unique
    write "blah blah" to my 2 on X for string array

    anyway I can see why I deleted this, it is many steps and makes no sense after awhile with too much overhead for performance. I will learn the use arrays to be stored as text way for objects this one is too much and too bloated.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Feature Request - Ability to parse JSON arrays/objects
    By DracisLooby in forum HTML5 Export Module 2.5
    Replies: 9
    Last Post: 29th November 2013, 07:46 AM
  2. Many Objects ... Game slow down
    By Captain_Harris in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th February 2012, 01:26 PM
  3. Arrays and Moving Objects
    By GWGord in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th September 2008, 06:37 PM
  4. reference for arrays and database objects
    By jonboy7039 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 6th July 2008, 06:13 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
  •