KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.49k stars 319 forks source link

Does sampling animations require a full depsgraph update per frame? #1387

Open will-ca opened 3 years ago

will-ca commented 3 years ago

Is your feature request related to a problem? Please describe.

I have a file where sampling animations seems to take forever. (I haven't ever waited for it to finish.)

I assume this is probably because the scene has a lot of very computationally expensive modifiers, and sampling each frame probably triggers a depsgraph update. I have the scene set up so depsgraph changes rarely occur in full when I'm working on it, so it stays interactive to me, but a full reload takes several seconds.

Describe the solution you'd like

It'd be nice if there were an option to disable processing things that aren't likely to affect exportable animated values when sampling animations, like procedural geometry.

There may still be some edge cases though where procedural geometry can in turn affect animated values through constraints, drivers, etc, hence why I say it should be an option.

will-ca commented 3 years ago

Hm.

I thought setting up another view layer with all the expensive collections disabled would help, but it hasn't.