Verify frame pacing improvement

After integrating Android Frame Pacing into your game, it's important to verify that its functionality has provided more consistent frame pacing. The best tool for confirming this improvement is the systrace command-line program. In particular, it's best to capture a trace for your game using the following set of parameters:

pythonsystrace.py-ayour-app-package-name-omygametrace.html\
schedfreqidleamwmgfxviewsyncbinder_driverhalinputaidl

When viewing the output HTML report, you can find information relevant to frame-pacing in the SurfaceView channel. This channel reports the number of frames that are buffered within the display pipeline. By successfully integrating Android Frame Pacing into your game, you should see any inconsistencies in this counter (Figure 1) become stabilized (Figure 2).

Systrace report showing SurfaceView channel
Figure 1. Inconsistent frame-pacing before Android Frame Pacing integration

Systrace report showing SurfaceView channel
Figure 2. Consistent frame-pacing after Android Frame Pacing integration

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年02月26日 UTC.