Bones - Skeletal and Pose Animations for jPCT/jPCT-AE > Bones

AnimatedGroup.applySkeletonPose() is too slow on Android

(1/1)

jaychang0917:
My model has around 8000 polygons, I use the following code to rotate a joint, but I found the call animatedModel.applySkeletonPose() cause around 800 ms, which is too slow, have any idea to improve the performance? The method is called in game loop. Thanks.


--- Code: ---void updateModel() {
    leftEyeRotateMatrix.setIdentity();
    leftEyeRotateMatrix.rotateX(eulerX);
    skeletonHelper.transformJoint("left_eye_sk", leftEyeRotateMatrix);
    skeletonHelper.pose.setToBindPose();
    skeletonHelper.pose.updateTransforms();
    animatedGroup.applySkeletonPose();
    animatedGroup.applyAnimation();
}

--- End code ---

raft:
might be simply 8000 polygons are too much? still 800ms is a lot though. that method is heavily optimized and even by EgonOlsen, so I cant see much space to improve there

Navigation

[0] Message Index

Go to full version