Skip to content

Allow changing vsync on a Window #693

@bitshifter

Description

@bitshifter

Perhaps there is a good reason for not supporting this, but many APIs do allow changing the present interval on the fly and it's useful to be able to toggle vsync without recreating the Window, device context and all resources. Perhaps a return value if the operation was supported and successful would suffice.

Something like:

impl Window {
  fn set_vsync(enabled: bool) -> Result<(), SomeError> {}
  // or even 
  fn set_present_interval(interval: PresentInterval) -> Result<(), SomeError> {}

Does this make sense for glutin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions