I find cleaner and easier to work with keeping those elements in separate buffers, but I wanted to know if it performs better having them all in one big buffer.
I find cleaner and easier to work with keeping those elements in separate buffers,
Share
We are talking about Structure of Arrays or Array of Structures and it’s efficiency. In most cases Array of Structures is more efficient because it will make better use of processor cache, but this assumes that you will access the data in order they are in memory.
But if you some data is refreshed at different rate than the other one it will benefit to have them in different buffers, that way you can update only the data you need to update.