Hi everyone.
I’m using setSwapInterval() to enable vsync, and it works perfectly in windowed mode, but it doesn’t in fullscreen mode. If I turn it on while in windowed and then switch to fullscreen, it works at the previous frequency, and if I try to turn it on in fullscreen, it just won’t.
I’ll try to clarify the problem with an example. I have the screen set to 1024x768 @ 85 Hz, and turning vsync on with setSwapInterval(1) while in windowed mode effectively limits fps to 85. Now, if I switch to fullscreen mode 640x480 @ 120 Hz, it keeps running @ 85 fps, instead of 120. If I call setSwapInterval again (or only) after going fullscreen, nothing changes.
At first I thought that maybe the 120 Hz mode wasn’t really working and was running @ 85 Hz instead, but the getRefreshRate() of the display mode gives 120. Besides, calling setSwapInterval(1) only after entering fullscreen mode doesn’t limit the framerate at all.
That is, all calls to setSwapInterval while in fullscreen seem to be ignored.
¿Any ideas?
Thanks in advance.