3 ms·
Borrowing the concept of scene graphs from gamedev is one technique I like to use. https://webglfundamentals.org/webgl/lessons/webgl-scene-graph.html https://w
by indescions_2018 9y ago
Borrowing the concept of scene graphs from gamedev is one technique I like to use.
https://webglfundamentals.org/webgl/lessons/webgl-scene-graph.html https://webglfundamentals.org/webgl/lessons/webgl-scene-grap...
Another data driven architecture is to make extensive use of the Dataset property. Every element has a unique key associated with it. And all keys map to state objects in a data store. It then becomes easier to iterate and extract the relevant queries and stats.
https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Us...
There's no perfect one size fits all solution. But data oriented design is a great tool for starting to break down your app. Best of luck!