3 ms·
Why not just compile the thing? Textual source code for authoring, optimised binary for execution. We do this for executable code, is there any reason why we
by loup-vaillant 9y ago
Why not just compile the thing? Textual source code for authoring, optimised binary for execution.
We do this for executable code, is there any reason why we shouldn't do this for assets as well?
- corysama 9y agoI’ve worked on 3D pipelines that did just that. The text format was even, gasp, XML! As long as the large arrays were large strings of numbers and not individual nodes per component, it was actually pretty efficient and very fast to convert.
- satori99 9y agoThis is essentially what three.js does with WebGL content. Using JSON; https://github.com/mrdoob/three.js/wiki/JSON-Geometry-format-4 https://github.com/mrdoob/three.js/wiki/JSON-Geometry-format...