[SDL] XFree86 4.3.0, SDL 1.2.5 refresh rates ...
Stephen Anthony
stephena at roadrunner.nf.net
Tue Apr 8 12:51:01 PDT 2003
On April 8, 2003 04:24 pm, Glenn Maynard wrote:
> On Tue, Apr 08, 2003 at 08:22:37AM -0230, Stephen Anthony wrote:
> > After scouring the mailing list, I found someone who said they had
> > hacked SDL to use a refresh rate that they specified. I could do
> > that, but I was wondering what would be a more general, and correct
> > solution.
>
> I've done this for Windows. The problem in Windows is that the
> underlying APIs, on many systems, list refresh rates that the system
> can't *really* do, and if you try to activate them it'll just desync
> the monitor, so the only safe thing to do is to stick to 60Hz (the
> default), and let the user change it. (I'm not sure what causes these
> invalid modes; all I know is that when I had SDL automatically setting
> the highest known refresh for the resolution, people complained that
> the game desynced their monitor when it started.)
Then I guess you were the person I found in the ML :) But as someone else
mentioned, X does a nice job for us of clamping the modes to 85 Hz, and
deleting all those that don't work.
My patch (for the X11 version) will just delete some more of these modes,
so, for example, if there is a mode of 800x600 with 85 and 72 Hz, SDL
will *never* see the 72 Hz one.
Steve
More information about the SDL
mailing list