Animations best practices

To create more efficient animations:

  • Remove the keyframes that do not affect the precision of an animation. See Removing redundant keyframes.

  • Remove the Animation Data channels that do not animate anything.

    See Removing redundant Animation Data channels.

  • Avoid excessive use of bezier interpolation between keyframes, because bezier interpolation is more expensive than linear, step, and smooth step interpolation.

  • After you import an animation that is heavily sampled, check whether the keyframes are using Bezier interpolation. To significantly reduce the CPU workload, select all keyframes and use linear interpolation. This rarely has an impact on the visual quality of the animation. See Changing the interpolation mode between keyframes.

  • To dynamically change the size of text in a Text Block node, use the Scale property field of either Render Transformation or Layout Transformation properties, instead of the Font Size property. For example, use this approach when you want to animate the size of text in a Text Block node. When you use the Font Size property to dynamically scale the text, Kanzi creates multiple textures for different font sizes and does not release them from the memory.

See also

Removing redundant keyframes

Removing redundant Animation Data channels

Troubleshooting the performance of your application

Best practices

Animations