I need more speed to compare two arrays. know if a puzzle is well done

TomasAceytunoTomasAceytuno Member Posts: 10
edited September 2012 in Working with GS (Mac)
Basically I want to compare two tables of 165 elements (colored pieces).

Local var: ID =1 for index in array table.

Constrain attribute - Var1 = tablecellvalue(arrayA,ID,1)
Constrain attribute - Var2 = tablecellvalue(arrayB,ID,1)

Rule ID < 165
Timer = 0
Rule Var1=Var2 ............................
Display Text ID (to see ID on screen) only for tests.
Change attribute ID = ID+1

With this simple loop, i need about 5 seconds to complete.
know any way to make this simple loop faster?

you can see at:
http://www.infoarq.es/gstables.jpg



Thanks.

Tomas Aceytuno

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited September 2012
    Searching tables is a slow process at this point. Not much you can do. Lists over 50 are very slow. Also I don't recommend using 0 timers as they can cause crashes.
  • KiwiLeeKiwiLee Member Posts: 181
    I needed to check over three hundred items in a list and did this by creating doubling the number of actors and working on an offset basis I.e odds and evens. I added more actors and did nth processing if required!

    Keen to hear how others have dealt with this.
  • TomasAceytunoTomasAceytuno Member Posts: 10
    thx for tips!
    Timer = 0.05 :)
    I will try KiwiLee.
Sign In or Register to comment.