Bug 2972 - r_swapInterval support in SDL
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: 1.33 SVN
Hardware: Macintosh MacOS X
: P2 normal
Assignee: Tony J. White
QA Contact: ioquake3 bugzilla mailing list
URL:
: Mac-r_swapinterval
Depends on:
Blocks:
 
Reported: 2006-12-20 11:10 EST by Tony J. White
Modified: 2007-05-21 23:52:19 EDT
1 user (show)

See Also:


Attachments
svn1014 SDL r_swapInterval support (1.16 KB, patch)
2006-12-20 11:11 EST, Tony J. White

Description Tony J. White 2006-12-20 11:10:51 EST
The r_swapInterval cvar is not supported in the current SDL GL implementation.

Recently (version 1.2.10?) libSDL added a GL Attribute for handling this: SDL_GL_SWAP_CONTROL

Attached patch makes use of this new attribute to support r_swapInterval, but frankly I have no idea how to tell if it's working or not.  I made a Mac OS X build using this patch (built against SDL 1.2.11) here:

http://tjw.org/ioquake3-ub/ioquake3-svn1014M.dmg

If you make use of this cvar, please test and let me know.  You may need to
do /vid_restart after changing the r_swapInterval cvar, I also need to know
if that is required.
Comment 1 Tony J. White 2006-12-20 11:11:24 EST
Created attachment 1209 [details]
svn1014 SDL r_swapInterval support
Comment 2 Stefan Stommels 2007-05-21 07:21:34 EDT
That .dmg url isn't working.

You can tell if it's working by setting r_swapinterval to 1 and com_maxfps to 125. Now if your fps go up to 125 it's not working, if your fps get capped at the monitor's refresh rate, it works. Best to try in test_bigbox or some map where your computer easily makes more fps than Hz
Comment 3 Ryan C. Gordon 2007-05-21 11:21:52 EDT
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.

--ryan.

Comment 4 Tony J. White 2007-05-21 23:48:12 EDT
*** Bug 3115 has been marked as a duplicate of this bug. ***
Comment 5 Tony J. White 2007-05-21 23:52:19 EDT
Thanks for the information in bug 3115

I added SDL r_swapInterval support at revision 1088.

Also, I updated the included SDL headers and Mac OS X library at revision 1089.