Speed up FBX export of face material indices with numpy #104450

Merged
Bastien Montagne merged 1 commits from Mysteryem/blender-addons:fbx_numpy_face_materials_pr into main 2023-03-06 15:10:58 +01:00
Member

Use buffer matching the C type of the "material_index" property in foreach_get to avoid having to iterate and cast every single element in the C foreach_getset function.

~5-6 times faster export of face material indices.

This patch makes no change to the exported file.


This patch depends on
#104447
I wasn't sure if I should include its commit in this PR, I have included it for now.

Use buffer matching the C type of the "material_index" property in foreach_get to avoid having to iterate and cast every single element in the C foreach_getset function. ~5-6 times faster export of face material indices. This patch makes no change to the exported file. ----- This patch depends on https://projects.blender.org/blender/blender-addons/pulls/104447 I wasn't sure if I should include its commit in this PR, I have included it for now.
Thomas Barlow requested review from Bastien Montagne 2023-02-28 01:21:26 +01:00
Bastien Montagne force-pushed fbx_numpy_face_materials_pr from 389b10cc33 to c2731d62bd 2023-02-28 18:06:43 +01:00 Compare
Bastien Montagne force-pushed fbx_numpy_face_materials_pr from c2731d62bd to 6426fbf407 2023-03-06 15:05:49 +01:00 Compare
Bastien Montagne merged commit 4269b4ad15 into main 2023-03-06 15:10:58 +01:00
Bastien Montagne deleted branch fbx_numpy_face_materials_pr 2023-03-06 15:10:59 +01: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#104450
No description provided.