by tincture · 9y ago · 0 comments
Once you hand off the vertices to the WebGL context, it's all the same bits; your file loading strategy has no performance or memory impact.
This is one of those weird cases where, despite obj being a simpler format on paper, it would likely be slower to parse due to having to hand-roll the parser in JavaScript and not use the browser's native built-in parser instead.
JSON is nice as a hand-editable text format. It isn't designed to be fast to parse, or to produce small files.