# SDL/OpenGL Linux vs Windows

**URL:** <https://discourse.libsdl.org/t/sdl-opengl-linux-vs-windows/5128>\
**Category:** SDL Development\
**Created:** [September 23, 2001, 9:27pm UTC](https://discourse.libsdl.org/t/sdl-opengl-linux-vs-windows/5128 "2001-09-23T21:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Cober](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/eada6e/32.png) [@Bob\_Cober](https://discourse.libsdl.org/u/Bob_Cober)\
**Post date:** [September 23, 2001, 9:27pm UTC](https://discourse.libsdl.org/t/sdl-opengl-linux-vs-windows/5128/1 "2001-09-23T21:27:06Z")

</div>

Help!!!

I am working on an SDL/OpenGL game. I have been developing it on Linux, and  
getting about 150 fps. I just ported to Windows, and now I’m getting 59  
fps. The SDL sound was messed up too, but I fixed that by changing the  
audio sample buffer size back up to 4096 ( I had lowered it down to 1024 in  
Linux due to some latency issues).

My question is: has anyone experience a slow-down when moving to windows?  
Any ideas on where I should start looking? I have some recent nvidia  
drivers on both Linux and windows. I have experienced the slowdown on a  
Geforce2 Go chip on a laptop, and a Geforce2 MX on a desktop.

I am using SDL for input, audio, and graphic initialization and OpenGL for  
3d. I am using SDLGetTicks for the timing measurement to calculate my fps.

Thanks in advance for any help or suggestions!!!

---

<div class="post-metadata">

**Author:** ![Clement\_Bourdarias](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/c/13edae/32.png) [@Clement\_Bourdarias](https://discourse.libsdl.org/u/Clement_Bourdarias)\
**Post date:** [September 25, 2001, 12:37am UTC](https://discourse.libsdl.org/t/sdl-opengl-linux-vs-windows/5128/2 "2001-09-25T00:37:01Z")

</div>

Hi,

59 is close to 60.  
The windows OpenGL nvidia drivers syncs with vertical refresh by default,  
so if your display is at 60Hz, you cannot have more that 60 fps.  
NVidia linux driver doesn’t sync to V-refresh by default that’s why you  
can have 150 fps.

You can check the “advanced Display properties” on windows to disable the  
V-sync.

Clement.–  
Clement “phneutre” Bourdarias  
phneutre at [mangoquest.org](http://mangoquest.org)  
[www.mangoquest.org](http://www.mangoquest.org)

On Sun, 23 Sep 2001 21:33:45 -0700 “Bob Cober” wrote:

> Help!!!
> 
> I am working on an SDL/OpenGL game. I have been developing it on Linux,  
> and  
> getting about 150 fps. I just ported to Windows, and now I’m getting 59  
> fps.
