Author Topic: AnimatedGroup.applySkeletonPose() is too slow on Android  (Read 316 times)

Offline jaychang0917

  • int
  • **
  • Posts: 50
    • View Profile
AnimatedGroup.applySkeletonPose() is too slow on Android
« on: April 18, 2017, 09:07:18 am »
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: [Select]
void updateModel() {
    leftEyeRotateMatrix.setIdentity();
    leftEyeRotateMatrix.rotateX(eulerX);
    skeletonHelper.transformJoint("left_eye_sk", leftEyeRotateMatrix);
    skeletonHelper.pose.setToBindPose();
    skeletonHelper.pose.updateTransforms();
    animatedGroup.applySkeletonPose();
    animatedGroup.applyAnimation();
}
« Last Edit: April 18, 2017, 10:07:10 am by jaychang0917 »

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1971
    • View Profile
    • http://www.aptalkarga.com
Re: AnimatedGroup.applySkeletonPose() is too slow on Android
« Reply #1 on: April 19, 2017, 03:58:27 pm »
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