how about memcpy()? but why do you need to copy the array each frame?