Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    PresentInterval Enum

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Defines flags that describe the relationship between the adapter refresh rate and the rate at which Present operations are completed.

    public enum PresentInterval

    Fields

    Name Description
    Default

    Equivalent to setting One.

    Immediate

    The runtime updates the window client area immediately, and might do so more than once during the adapter refresh period. Present operations might be affected immediately. This option is always available for both windowed and full-screen swap chains.

    One

    The driver waits for the vertical retrace period (the runtime will beam trace to prevent tearing). Present operations are not affected more frequently than the screen refresh rate; the runtime completes one Present operation per adapter refresh period, at most. This option is always available for both windowed and full-screen swap chains.

    Two

    The driver waits for the vertical retrace period. Present operations are not affected more frequently than every second screen refresh.

    Extension Methods

    ComponentBaseExtensions.DisposeBy<PresentInterval>(ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<PresentInterval>(ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation