Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSync is not activated under MacOS X Snow Leopard #569

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

VSync is not activated under MacOS X Snow Leopard #569

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
invalid

Comments

@SDLBugzilla
Copy link
Collaborator

@SDLBugzilla SDLBugzilla commented Feb 10, 2021

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 1.2.14
Reported for operating system, platform: Mac OS X 10.6, All

Comments on the original bug report:

On 2010-05-10 14:39:56 +0000, Vittorio Giovara wrote:

the usual 1.2 way of enabling Vsync is not working since mac os x 10.6 came out
i don't know if it's a driver issue but just writing

    SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);

has no effect and a lot of tearing happens when using a gl context.
We found out the fix code in some python game in which they used

one := 1;
CGLSetParameter(CGLGetCurrentContext(), 222, @one);

to workaround it. Above code is in pascal and links agains the OpenGL library.
With this fix tearing never occurs under any mac version; i have untested if the problem also affects sdl 1.3, might be worth to try it.

On 2011-02-16 04:17:25 +0000, Sam Lantinga wrote:

This is working correctly in SDL 1.3.

On 2011-02-16 04:48:33 +0000, Vittorio Giovara wrote:

but isn't it worth to fix this bug in the sdl 1.2 branch?

On 2011-02-16 05:02:10 +0000, Sam Lantinga wrote:

Yes, but I won't have time to get to it for a while. :)

On 2011-08-21 07:58:38 +0000, Ryan C. Gordon wrote:

Is the concern that 1.2 isn't setting vsync at all, or it doesn't set vsync until you call SDL_SetVideoMode() again?

1.3 lets you toggle vsync on an existing context, 1.2 needs you to specify vsync preferences before setting the video mode.

(it's working here on Lion, fwiw: run test/testgl -sync, and you can see.)

--ryan.

On 2011-08-23 01:28:22 +0000, Vittorio Giovara wrote:

oh my bad, i was enabling SDL_GL_SWAP_CONTROL after creating the window
when enabled before, it works fine! thanks for pointing it out

@SDLBugzilla SDLBugzilla added bug invalid labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid
Projects
None yet
Development

No branches or pull requests

1 participant