Slow fullscreen opengl in win32

“Wenzel Jakob” wrote in message
news:006e01c1146e$e07e5ba0$be76fea9 at wazlaf…
Hi,
i am using SDL to write a portable opengl engine. Everything works
perfectly
fine except the fullscreen mode:

when I change the command:
SDL_SetVideoMode(xres, yres, bpp, SDL_OPENGL);
to
SDL_SetVideoMode(xres, yres, bpp, SDL_OPENGL | SDL_FULLSCREEN);
the framerate/second drops from 100 to about 60… Why is that? I am using
a
GeForce 3 GTS Pro graphic card and my program is compiled with SDL 1.2.1
under win32.
Shouldn’t it be running faster because SDL does not need to deal with
windows anymore when
the program is running fullscreen?

this is normal, in fullscreen mode, the flipping will be synchronised with
the refreshing of your screen…
so if you monitor is set to 60hz, so the fps will be 60fps…

you can change this behavior in display properties / setting / advanced /
geforce / advanced / opengl settings
(‘vertical sync’ to ‘always off’)

Gautier

Hi,
i am using SDL to write a portable opengl engine. Everything works perfectly
fine except the fullscreen mode:

when I change the command:
SDL_SetVideoMode(xres, yres, bpp, SDL_OPENGL);
to
SDL_SetVideoMode(xres, yres, bpp, SDL_OPENGL | SDL_FULLSCREEN);
the framerate/second drops from 100 to about 60… Why is that? I am using a
GeForce 3 GTS Pro graphic card and my program is compiled with SDL 1.2.1 under win32.
Shouldn’t it be running faster because SDL does not need to deal with windows anymore when
the program is running fullscreen?

Any help is appreciated,
Wenzel