FBX IO: Speed up animation simplification using NumPy
commit461e0c3e1e0a8748106189fde3c7daf61c9fb46b
authorThomas Barlow <github@mysterymayhem.co.uk>
Fri, 6 Oct 2023 15:52:59 +0000 (6 17:52 +0200)
committerMysteryem <mysteryem@noreply.localhost>
Fri, 6 Oct 2023 15:52:59 +0000 (6 17:52 +0200)
treef549bd6f7b2a8bcc9b847af4eaab1dac457af53f
parentc4b070f311461e48d9bb09f90209bddf0fef3051
FBX IO: Speed up animation simplification using NumPy

This patch re-writes animation curve simplification on export to use
NumPy where possible for performance.

An export of a 1523 frame animation of a 65 bone armature animating 47
of the bones (almost entirely rotation animation) goes from a 2.9s
export to a 2.2s export for me with this patch (using the default
Simplify value of 1.0).

There are no expected changes to the contents of exported files with
this patch.

Pull Request: https://projects.blender.org/blender/blender-addons/pulls/104904
io_scene_fbx/__init__.py
io_scene_fbx/fbx_utils.py