&gt;std::array&lt;int,ARR_SIZE&gt; is better than int arr[ARR_SIZE]
I don&#x27;t know how you could disagree with that...<p>What is the alignment of your std::array? What is the memory type (e.g. can the GPU read from it at all? Can it write? What are cache policies?). The alternative though is not a C array, it&#x27;s an explicit memory mapping.<p>&gt;Can you be clear about why this is bad?<p>Useless code at best (if your game runs properly it will never be deallocated by your code), obscuring bugs at worst (if it starts deallocating at runtime it will take longer to fail).