Explore whether providing a pbuffer surface before the SurfaceView is available helps first frame latency #90835
Labels
customer: money (g3)
engine
flutter/engine repository. See also e: labels.
P1
High-priority issues at the top of the work list
platform-android
Android applications specifically
Currently, the SurfaceView does not get a Surface until the Choreographer inflates the view in its first
doFrame
. On lower end devices, this can take a significant amount of time, and may be delaying signals to the running Dart code that could be used to prepare the drawing of an initial frame.It may be worth providing a pbuffer surface until the actual on screen surface is available, so that the framework can start trying to do work earlier. One thing I still have to explore is how much this helps applications that try to rapidly draw something without doing much other initialization work, since the traces I'm currently looking at do a substantial amount of initialization work before trying to draw a frame. It may be that those are what really take the time rather than waiting for a surface to be available.
/cc @blasten @goderbauer @xster fyi
The text was updated successfully, but these errors were encountered: