donmccurdy / glTF-Transform

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

change log of prune when nothing is found to debug visibility #1431

Closed Makio64 closed 3 weeks ago

Makio64 commented 3 weeks ago

Currently the prune is used internally in many functions and it 'spam' the log especially when No unused properties found :

for example :

resample: 0.83ms
prune: Removed types... Node (29)
flatten: 1.13ms
prune: No unused properties found.
weldVertices: 8.36ms
prune: No unused properties found.
prune: No unused properties found.
simplifyMesh: 11.40ms
//etc...

after this change :

resample: 0.83ms
prune: Removed types... Node (29)
flatten: 1.13ms
weldVertices: 8.36ms
simplifyMesh: 11.40ms
//etc...