Original Post
After some reading on Data Oriented Design (DOD) i have a question i can't find an answer for:
How to disable/cull elements in a Data Oriented flow?
Let say you have a game populated with some thousand 'objects'. Their data is put into linear arrays to allow to update them all at once, nicely decoupled from calls or callbacks.
Now you need to cull your 'objects' to the view frustum and most of them are not visible and should not anymore be processed.
How is this achieved using DOD (witout using an ugly 'Active Flag' which would make the whole DDO approach almost useles) ?
How to disable/cull elements in a Data Oriented flow?
Let say you have a game populated with some thousand 'objects'. Their data is put into linear arrays to allow to update them all at once, nicely decoupled from calls or callbacks.
Now you need to cull your 'objects' to the view frustum and most of them are not visible and should not anymore be processed.
How is this achieved using DOD (witout using an ugly 'Active Flag' which would make the whole DDO approach almost useles) ?