You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for this addon! I use it for my OF-based app called Game Script (script version, native C/C++ version) that allows to code in C and C++ and compile the code at runtime.
Here's an example of code that draws a Mixamo FBX mesh using your addon:
As you can see at the top left corner, the printed time difference for fbxLateUpdate(fbx) (which is a Game Script function that directly calls fbx->lateUpdate() method here) is 7 milliseconds, which is... a lot! 😄
All 7 milliseconds are spent here, in this Mesh::updateMesh function alone:
I know it's the heaviest function, but it can take less than 7 milliseconds... I will rewrite it at some point, just letting you know about this issue!
Thank you again for this awesome addon! 😃
The text was updated successfully, but these errors were encountered:
Hi @redgpu,
Thank you for using the add on and reporting the issue. It is indeed a heavy function; the computation of the bones and its influence on each vertex is computationally expensive. Could probably be improved by using shaders for a GPU skinning type approach.
I welcome any PRs improving and optimizing the function :)
Hi, Nick!
First of all, thank you for this addon! I use it for my OF-based app called Game Script (script version, native C/C++ version) that allows to code in C and C++ and compile the code at runtime.
Here's an example of code that draws a Mixamo FBX mesh using your addon:
https://pastebin.com/raw/Cnkbg7Zt
As you can see at the top left corner, the printed time difference for
fbxLateUpdate(fbx)
(which is a Game Script function that directly callsfbx->lateUpdate()
method here) is 7 milliseconds, which is... a lot! 😄All 7 milliseconds are spent here, in this
Mesh::updateMesh
function alone:ofxFBX/src/FBXSource/ofxFBXSrcMesh.cpp
Lines 586 to 679 in f032fd4
I know it's the heaviest function, but it can take less than 7 milliseconds... I will rewrite it at some point, just letting you know about this issue!
Thank you again for this awesome addon! 😃
The text was updated successfully, but these errors were encountered: