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
Member

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.


I think this should be ok going into 4.0 because it's only removing old code that should have been removed a long time ago.

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. --- I think this should be ok going into 4.0 because it's only removing old code that should have been removed a long time ago.
Thomas Barlow added 1 commit 2023-09-29 19:36:59 +02:00
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.
Thomas Barlow requested review from Bastien Montagne 2023-09-29 19:37:26 +02:00
Bastien Montagne approved these changes 2023-10-03 18:18:53 +02:00
Bastien Montagne left a comment
Owner

LGTM.

LGTM.
Thomas Barlow added 2 commits 2023-10-06 04:26:17 +02:00
Thomas Barlow merged commit 63d4898e1d into blender-v4.0-release 2023-10-06 04:41:47 +02:00
Thomas Barlow deleted branch fbx_cluster_export_speedup 2023-10-06 04:41:48 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104922
No description provided.