Quote: "Because i need to reset it every frame, and going through it (it is a big array, 64*64) takes up a lot of loops thus slowing down my game."
Well, why not show us what your current routine looks like ? How much time is it actually using ?
(Quick hack)
So assuming you've something like this
; dim some place at the top of the code
dim MyArray(64,64)
; clear loop
For ylp=0 to 63
For xlp=0 to 63
MyArray(xlp,ylp)=0
next xlp
next ylp
Then depending what you're using it for you could express this as a 1d array also.
; dim some place at the top of the code
Size=64*64
dim MyArray(Size)
; clear loop
SizeMinusOne=Size-1
For lp=0 to SizeMinusOne
MyArray(lp)=0
next ylp
Which just means mult'ing the Y coordinate to write into as 2d structure.
Although, arrays have a bit of overhead, so a
mem block or allocated chunk of memory could potentially be preferable.
(pseudo code)
; alloc a chunk of memory to use for the array
Size=64*64
MyArrayPtr=Aloc(Size*4)
; clear loop
StartAddress=MyArrayPtr
EndAddress=MyArrayPtr+(Size*4)-1
For Ptr=StartAddress To EndAddress step 4
*MyArrayPtr=0
next ptr