[SDL] Linux to Windows port questions

Peter Mulholland darkmatter at freeuk.com
Mon Jun 5 09:41:23 PDT 2006


Hello Paul,

Monday, June 5, 2006, 1:27:10 AM, you wrote:

PD> 1) as SDL_WM_ToggleFullScreen does nothing in Windows, is there
PD> currently any way to get around this, any recommended reading, or am I
PD> condemned to insist on a restart to change resolution?

SDL_WM_ToggleFullScreen() has been marked depracted for quite a while now.

Why do you have to restart your app to change res? Plenty of windows
games manage this without a restart. You can call SDL_SetVideoMode()
again with another resolution, just bear in mind that you will
probably have to reload textures.

PD> 2) My OpenGL framerate dropped from about 330fps in Linux to 85fps, is
PD> there a known reason this is likely to happen or am I a stuck? As it
PD> stands, the Linux binary hogs the CPU quite nicely while the
PD> Windows .exe chugs along at 5% even if set to realtime priority.

The hint is the CPU usage. You will have vsync on as this is the
default for most Windows 3D drivers.

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com





More information about the SDL mailing list