[SDL] Forcing a refresh rate
darkmatter at freeuk.com
Sun Sep 10 11:09:48 PDT 2006
Sunday, September 10, 2006, 6:51:09 PM, you wrote:
> Hi guys,
> We're adapting one of our games to run in touchscreen machines for the
> skill-with-prizes market.
> The testers at one of the networks complain that the touchscreens are
> "miscalibrated" with the game. After a bit of investigation, the problem
> appears to be that the game sets the 800x600 video mode at 85Hz, and
> they request that we alter it to 60Hz.
> The game uses SDL without doing anything weird (ie pretty standard init
> code). Also, because they use ancient machines with Windows NT and
> DirectX 3.0 I'm not sure if the game is running with the directx or the
> windib driver (and for several reasons I'd rather not ask them to look
> at the log file)
> In either case, is there any way to force a specific refresh rate?
It will be using WinDIB.
From a quick read of SDL_dibvideo.c, the refresh rate is cloned from
the desktop refresh rate. So, if you set the desktop to 60Hz, the new
screen should be 60Hz too.
Peter mailto:darkmatter at freeuk.com
More information about the SDL