Re: Too much memory used?
Oh, and I changed it to a custom timer (on another thread), and it sped up, but it still experienced a huge slowdown about 50 seconds into the game.
Re: Too much memory used?
I've merged more loops for efficiency, and it's faster now, but still... slow. Now, I also get an ArgumentOutOfRangeException (index out of bounds), and it says that the source line is Me.Invoke(tmr) inside Timer_Timer(). I'm assuming that it's coming from something the delegate calls, probably MoveAllX() where it does operations with loops, collections, indexes, etc. That would happen if I remove the last item in the list and then reference it by index, correct? I just can't find a spot where that happens. I'm also still stuck with the "slow" problem. Help, please!
Changes are reflected in the updated Form1.vb attachment.