Loops

I need to scroll through 5526 entries as fast as possible over and over.

I know a loop is needed for this and have looked over the loop thread and the fastest I have gotten from entry 1 to 5526 is 8 seconds.

I did this by code stacking.

I didnt really understand the other loops.

I need the 8 seconds to be around 2 or as low as possible.

any ideas? will a different loop work faster?

I also need good performance. The code stacking works fine just not fast enough.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Something like a hyperloop (http://forums.gamesalad.com/discussion/54922/hyperloops-loop-to-your-hearts-content) will be pretty quick. The first post there states that 1000 iterations completed in ~0.8 seconds. That's still not as fast as you want, but I believe you can adjust the code so that there are more loops running simultaneously. If you don't understand it, it may not be a good solution for you, but it's something to check out.
  • polimerjonespolimerjones Member Posts: 50
    Whats funny is that the hyper loop runs even lower then what i have made.

    If you take just the base hyperloop and change it from 300 iterations to 5500 it takes like 10-12 seconds.

    Its not so hyper after all
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yes Gamesalad is not good for this kind of data sifting. One really needs to be able to create arrays and this may be possible when they add scripting to GS as is on the road map.
  • ericzingelerericzingeler Member Posts: 334
    If you don't mind me asking, what is your purpose for the loop?
Sign In or Register to comment.