-
Junior Member
Hit the logic limit
So I'm working on a Tetris clone and I have a lot of logic.
But today I hit the limit. At around 1420 pieces of logic, data sources start acting up, they start setting themselves to random values even when not connected to anything.
https://media.giphy.com/media/WU7Xai...Zy4Y/giphy.gif
I'm not sure if it's a bug or just data overload, I should be able to optimize my array down to 1D to get this working with less logic. Not sure if this can be fixed, but I thought I would put this here for RedLynx to see and also anyone else who plans to make some epic logic creation, beware!
-
Senior Member
Hi
The issue is with your code length, the impulse for the next frame is triggering while your code is still executing the last, break up your code and use a main loop like this
1st interval trigger (the main code loop start) set it to disable after 1 tick and check reset when enabled,
now break up your code so it can execute over several frames if necessary, use a state event at the break and set to on pointing at an interval trigger to continue your code and set up like the 1st
at the end of your code chain, use another state event on pointing to your main interval trigger to complete your code loop.
hope that made sense