donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.38k stars 149 forks source link

Optimize remaps in join() operations #1242

Closed donmccurdy closed 8 months ago

donmccurdy commented 8 months ago

Reduces time welding by using remapAttribute and similar methods. There's still too much overhead left in functions like transformPrimitive(), but that's for another time.

Results:

model before after
lovecraftian 500ms 300ms
plant3 5,200ms 3,750ms

Related:

donmccurdy commented 8 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.