Why the game lags (A LOT) when it is countinuosly messing with matrixes? for example:
The game lags a lot, and i need so bad to use a matrix for what i'm doeing
Code:
matrix = [[1,2],[3,4],[5,6],[1,2],[3,4],[5,6],[1,2],[3,4],[5,6],[1,2],[3,4],[5,6],[1,2],[3,4],[5,6],[1,2],[3,4],[5,6],[1,2],[3,4],[5,6]]
for i in 0...matrix.length
matrix[i][0] = 8
end
The game lags a lot, and i need so bad to use a matrix for what i'm doeing