15. Graphics and UI: Measurement and Tools
Just as with other areas of performance, optimizing graphics is usually pointless without knowing what is slow, and most importantly, knowing whether what you just did helped or hurt performance.
Measuring graphics performance and responsiveness is in many ways more difficult than other forms of performance measurement. Typically, the action is happening deep inside opaque system libraries, separate processes you don’t necessarily have access to and even separate pieces of hardware that may or may not be introspectable.
What’s more, when it comes to graphics performance, you really start to care about the timing of individual events, down to the level of tens of milliseconds. In previous chapters, we ...
Get iOS and macOS™ Performance Tuning: Cocoa®, Cocoa Touch®, Objective-C®, and Swift™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.