We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2

Summary: vsync patch...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2 CC: cwalther, marchesin
Version: HG 1.2   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 117    
Attachments: vsync patch

Description Ryan C. Gordon 2006-01-03 11:30:32 UTC
Date: Mon, 21 Mar 2005 12:06:14 +0100
From: Per Inge Mathisen <per.mathisen@gmail.com>
Reply-To: Per Inge Mathisen <per.mathisen@gmail.com>
To: "Ryan C. Gordon" <icculus@clutteredmind.org>
Subject: Re: [SDL] Outstanding patches?

On Sun, 20 Mar 2005Ryan C. Gordon <icculus@clutteredmind.org> wrote:

>> I'd like to sort through the patches people have posted/emailed that
>> never made it into CVS.


There is the SDL_GL_SWAP_CONTROL patch that I made. I sent a new
version off to Stephane Marchesin, who for some reason wanted to merge
some patches, but I never heard any more about that.

Latest version attached. Unfortunately, since I do not have the
necessary hardware myself, the patch is untested on hardware that
supports this feature. However, I have written the same feature for a
demo that several people have used and reported that swap control was 
working, so it should work, unless I screwed up and added bugs when
porting it to SDL :-)

The patch adds support for setting SDL_GL_SWAP_CONTROL to Windows and
X11. In Windows you can also query this enum to check that it is
working, or see what the default is - such functionality does not
exist in GLX. For more information on the standards implemented:
http://oss.sgi.com/projects/ogl-sample/registry/SGI/swap_control.txt
http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt

  - Per
Comment 1 Ryan C. Gordon 2006-01-03 11:31:48 UTC
Created attachment 1 [details]
vsync patch
Comment 2 Ryan C. Gordon 2006-01-05 02:33:43 UTC
(Changed severity to "API change" for a bunch of bugs.)

--ryan.

Comment 3 Ryan C. Gordon 2006-01-27 11:23:00 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 4 Christian Walther 2006-01-30 14:55:58 UTC
I can provide a Mac OS X (Quartz) implementation for this - see Bug #117 for a patch that would enable vsync unconditionally. Is there any advantage in adapting my patch right now? Otherwise I'll do it as soon as this is in CVS.
Comment 5 Sam Lantinga 2006-04-27 03:58:23 UTC
This is in SVN, thanks!