Class Renderer.DisplayInfo

  • Enclosing class:
    Renderer

    public static class Renderer.DisplayInfo
    extends java.lang.Object
    Information about the display this renderer is associated to
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long presentationDeadlineNanos
      How far in advance a buffer must be queued for presentation at a given time in ns On Android you can use Display.getPresentationDeadlineNanos().
      float refreshRate
      Refresh rate of the display in Hz.
      long vsyncOffsetNanos
      Offset by which vsyncSteadyClockTimeNano provided in beginFrame() is offset in ns On Android you can use Display.getAppVsyncOffsetNanos().
    • Constructor Summary

      Constructors 
      Constructor Description
      DisplayInfo()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 use Display.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 use Display.getPresentationDeadlineNanos().
      • vsyncOffsetNanos

        public long vsyncOffsetNanos
        Offset by which vsyncSteadyClockTimeNano provided in beginFrame() is offset in ns On Android you can use Display.getAppVsyncOffsetNanos().
    • Constructor Detail

      • DisplayInfo

        public DisplayInfo()