Closed Susko3 closed 3 months ago
It would probably make sense to have -1
and 0
defined as special values. SDL_VYSNC_DISABLE, SDL_VSYNC_ADAPTIVE or similar.
SDL_SetRenderVSync(renderer, -1); // unclear what this function does without looking into the docs
// compare with:
SDL_SetRenderVSync(renderer, SDL_VSYNC_ADAPTIVE);
It would probably make sense to have
-1
and0
defined as special values. SDL_VYSNC_DISABLE, SDL_VSYNC_ADAPTIVE or similar.SDL_SetRenderVSync(renderer, -1); // unclear what this function does without looking into the docs // compare with: SDL_SetRenderVSync(renderer, SDL_VSYNC_ADAPTIVE);
Yes, that sounds good. Want to make a PR adding these defines below the function?
https://wiki.libsdl.org/SDL3/SDL_SetRenderVSync
Does passing in
0
disable vsync?