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
The conversion is walking the BVH tree for each frame. But the file already has all the rotation values and it just needs to be filtered.
Maybe the values still need conversion because of rotation order or something else. Should check.
There's definitely much room for performance impovement.
The text was updated successfully, but these errors were encountered:
After profiling with cProfile, I found that the majority of the time was spent in the search function of bvh.py.
Upon reviewing the processing during execution, I noticed that the patterns of arguments being input were only a few variations of joint definitions, so the same processing seemed to be repeated in most calls.
As a result, simply caching this function can significantly improve performance.
The modification only requires adding an import and a decorator.
Please consider applying this fix.
With this modification, the performance improves as shown below when running the bvh2csv command on the bvh file I have at hand.
The test was performed on the same PC.
The conversion is walking the BVH tree for each frame. But the file already has all the rotation values and it just needs to be filtered.
Maybe the values still need conversion because of rotation order or something else. Should check.
There's definitely much room for performance impovement.
The text was updated successfully, but these errors were encountered: