Skip to content

gl_set_swap_interval doesn't support "long" intervals #756

Open
@SolraBizna

Description

@SolraBizna

A little-known, little-used, apparently undocumented feature of SDL_GL_SetSwapInterval is that (on some systems, at least) you can meaningfully provide a value greater than 1. For example, a value of 2 syncs to every second vertical blank, which on a 60Hz display translates to 30Hz.

I used this in a previous iteration of a project that I am reimplementing in Rust—though I have coincidentally eliminated the feature that made use of "long" swap intervals. I'm not aware of any other usage, and since my project is extremely Linux-specific I have no idea whether or not it can be expected to work on macOS or Windows.

rust-sdl2 doesn't support this usage. The question is, does anyone actually care? (Heck, I'm not even sure I care.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions