Chapter 14. Animation and Performance
Performance is a term that refers to how fast an application runs. If someone says that an application has "performance issues," it means the application is too slow. Computer chips double in speed every eighteen months or so, but software increases proportionately in size and complexity. There's a lot of stuff between your application and the silicon. If you're a Java developer, there's an extra layer—the Java Virtual Machine (JVM). All developers, and especially Java developers, have to be careful to make sure that their applications run fast enough to be useful.
What does this have to do with the 2D API? Many developers have expressed interest in using the 2D API in animations, where each frame of the animation is generated on the fly. While the 2D API wasn't designed specifically for animation, it can be used in this way.
This chapter includes a flexible framework for building animation applications. It also includes three applications, built from the framework, that allow you to examine the effects of various 2D operations on the animation rate.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access