Yeah I thought this was a clever way of using a reference to a display buffer. Like a more idiomatic pointer. But it’s just copying data and letting the compiler copy it once instead of twice if you explicitly move it. A copy is unavoidable if you’re moving it to the stack. But why do that at all?
Why use a stack array at all? Display buffers are normally allocated once and re-used.
Yeah I thought this was a clever way of using a reference to a display buffer. Like a more idiomatic pointer. But it’s just copying data and letting the compiler copy it once instead of twice if you explicitly move it. A copy is unavoidable if you’re moving it to the stack. But why do that at all?