FBX IO: Speed up cluster export: Remove unused sorting #104922

Merged
Thomas Barlow merged 3 commits from Mysteryem/blender-addons:fbx_cluster_export_speedup into blender-v4.0-release 2023-10-06 04:41:47 +02:00

3 Commits

Author SHA1 Message Date
844b22d7f0 Increase FBX IO Version 2023-10-06 03:16:49 +01:00
62ae0da164 Merge branch 'blender-v4.0-release' into fbx_cluster_export_speedup 2023-10-06 03:08:08 +01:00
cc166e3039 FBX IO: Speed up cluster export: Remove unused sorting
Sorting the weights and vertex group indices on each vertex was added in
a47e870349 as part of an option to limit the maximum number of exported
weights per vertex. This feature was later removed, but the extra code
that added the sorting was not.

This patch removes the sorting because it is not needed and is quite
expensive. Setting all the weights and indices into `vgroups` now runs
in about 40% of the original time.

The overall speedup from this patch depends very much on what data other
than the clusters needs exporting, but I get a reduction in total export
time between 7.5% and 15% for non-animated humanoid character models.
2023-09-29 18:35:03 +01:00