3 ms·
You might be interested in data-oriented design, nicely described in this talk by Andrew Kelley: https://vimeo.com/649009599 https://vimeo.com/649009599 Treati
by cgh 4y ago
You might be interested in data-oriented design, nicely described in this talk by Andrew Kelley: https://vimeo.com/649009599 https://vimeo.com/649009599
Treating data in code using the same basic layout that databases use is common in game programming. The usual example is structs of arrays as opposed to arrays of structs.
https://en.wikipedia.org/wiki/Data-oriented_design https://en.wikipedia.org/wiki/Data-oriented_design but I suggest watching the above talk first.