Skip to content

Use eglPresentationTimeANDROID #93352

@dnfield

Description

@dnfield

If we manage to submit two raster frames in a single vsync, e.g. because we made a swap buffers call that took an unexpectedly long time and pushed us into the next frame boundary, we can use this extension to let SurfaceFlinger know to only actually render the latest frame.

This should help save GPU time and make sure we don't get ahead of the GPU in the case where we're able to rapidly pump frames.

see https://android.googlesource.com/platform/frameworks/native/+/master/opengl/specs/EGL_ANDROID_presentation_time.txt

/cc @ds84182 @blasten @chinmaygarde

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)customer: money (g3)engineflutter/engine related. See also e: labels.perf: speedPerformance issues related to (mostly rendering) speedplatform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions