Hi! I have never worked with memory before, and now I need to copy one awway to another on every frame. So.
Do I have to allocate memory on every frame?
Like
-- Allocate memory for array b
-- Copy array a to array b
or just allocate memory once and then copy all the time?
Or maybe this way?
-- Free space, if b already exist
-- Allocate memory for array b
-- Copy array a to array b
Or I have to free memory only on application close? Would not be there any memory leaks when I copy all the time?