Package com.google.android.filament
Class Renderer.DisplayInfo
- java.lang.Object
-
- com.google.android.filament.Renderer.DisplayInfo
-
- Enclosing class:
- Renderer
public static class Renderer.DisplayInfo extends java.lang.ObjectInformation about the display this renderer is associated to
-
-
Field Summary
Fields Modifier and Type Field Description longpresentationDeadlineNanosHow far in advance a buffer must be queued for presentation at a given time in ns On Android you can useDisplay.getPresentationDeadlineNanos().floatrefreshRateRefresh rate of the display in Hz.longvsyncOffsetNanosOffset by which vsyncSteadyClockTimeNano provided in beginFrame() is offset in ns On Android you can useDisplay.getAppVsyncOffsetNanos().
-
Constructor Summary
Constructors Constructor Description DisplayInfo()
-
-
-
Field Detail
-
refreshRate
public float refreshRate
Refresh rate of the display in Hz. Set to 0 for offscreen or turn off frame-pacing. On Android you can useDisplay.getRefreshRate().
-
presentationDeadlineNanos
public long presentationDeadlineNanos
How far in advance a buffer must be queued for presentation at a given time in ns On Android you can useDisplay.getPresentationDeadlineNanos().
-
vsyncOffsetNanos
public long vsyncOffsetNanos
Offset by which vsyncSteadyClockTimeNano provided in beginFrame() is offset in ns On Android you can useDisplay.getAppVsyncOffsetNanos().
-
-