Besides skipping changing between object and pose mode to force matrix updates, we also set keyframes outside of the transform loop.
It also doesnt change the scene frame anymore (no measurable performance gains though)
With the updated code I can import all rancor animation frames in round about 6 and a half minutes on my machine at no visual difference to the animations. Before it took nealy 40 minutes to import all these frames.
Besides skipping changing between object and pose mode to force matrix updates, we also set keyframes outside of the transform loop. It also doesnt change the scene frame anymore (no measurable performance gains though)
With the updated code I can import all rancor animation frames in round about 6 and a half minutes on my machine at no visual difference to the animations. Before it took nealy 40 minutes to import all these frames.