SDL and OpenGL App

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!!!

Sounds as if the page flipping is synced to the refresh rate. There is a WGL
extension to explicitely control this behaviour but it’s much easier if you
simply use a tweak tool like NVMAX to disable VSYNC.

  • Daniel Vogel, Programmer, Epic Games Inc.> -----Original Message-----

From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of Bob
Cober
Sent: Monday, September 24, 2001 12:25 AM
To: sdl at libsdl.org
Subject: [SDL] SDL and OpenGL App

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!!!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Thank Daniel…

That was it. After turning off the vsync I got almost 500 fps in Windows.
I was hoping the Linux numbers would be closer to Windows than that! Could
there also be a vsync setting in X that would boost the Linux framerate?
As I said before, 160 fps in X vs 500 fps in Windows…doesn’t seem quite
right :frowning:

Anyway, thanks for your speedy response…

Daniel Vogel <666 at grafzahl.de> wrote in message
news:mailman.1001305625.16707.sdl at libsdl.org

Sounds as if the page flipping is synced to the refresh rate. There is a
WGL
extension to explicitely control this behaviour but it’s much easier if
you
simply use a tweak tool like NVMAX to disable VSYNC.

  • Daniel Vogel, Programmer, Epic Games Inc.

Cober

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> > -----Original Message-----

From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of Bob
Sent: Monday, September 24, 2001 12:25 AM
To: sdl at libsdl.org
Subject: [SDL] SDL and OpenGL App
3d. I am using SDLGetTicks for the timing measurement to
calculate my fps.

Thanks in advance for any help or suggestions!!!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Just a minor clarification -
The actual numbers were 159 fps Linux and 300 fps Windows at 1024x768.
Still, is a difference that big to be expected?

The 500 fps was at 800x600.

Bob Cober wrote in message
news:9omdg8$3ei$1 at ftp.lokigames.com

Thank Daniel…

That was it. After turning off the vsync I got almost 500 fps in Windows.
I was hoping the Linux numbers would be closer to Windows than that!
Could
there also be a vsync setting in X that would boost the Linux framerate?
As I said before, 160 fps in X vs 500 fps in Windows…doesn’t seem quite
right :frowning:

Anyway, thanks for your speedy response…

Daniel Vogel <666 at grafzahl.de> wrote in message
news:mailman.1001305625.16707.sdl at libsdl.org

Sounds as if the page flipping is synced to the refresh rate. There is a
WGL
extension to explicitely control this behaviour but it’s much easier if
you
simply use a tweak tool like NVMAX to disable VSYNC.

  • Daniel Vogel, Programmer, Epic Games Inc.

Bob> > > -----Original Message-----

From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Cober
Sent: Monday, September 24, 2001 12:25 AM
To: sdl at libsdl.org
Subject: [SDL] SDL and OpenGL App

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!!!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

You are clearly fillrate limited and AFAIK the NVIDIA driver’s use (or they
did last year, dunno whether that changed) blitting instead of page flipping
on Linux which burns up some more fillrate. At least this might explain it.
What resolution are you running your game in on Linux?

  • Daniel Vogel, Programmer, Epic Games Inc.> -----Original Message-----

From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of Bob
Cober
Sent: Monday, September 24, 2001 12:53 AM
To: sdl at libsdl.org
Subject: Re: [SDL] SDL and OpenGL App

Just a minor clarification -
The actual numbers were 159 fps Linux and 300 fps Windows at 1024x768.
Still, is a difference that big to be expected?

The 500 fps was at 800x600.

Bob Cober wrote in message
news:9omdg8$3ei$1 at ftp.lokigames.com

Thank Daniel…

That was it. After turning off the vsync I got almost 500 fps
in Windows.
I was hoping the Linux numbers would be closer to Windows than that!
Could
there also be a vsync setting in X that would boost the Linux framerate?
As I said before, 160 fps in X vs 500 fps in Windows…doesn’t
seem quite
right :frowning:

Anyway, thanks for your speedy response…

Daniel Vogel <@Daniel_Vogel> wrote in message
news:mailman.1001305625.16707.sdl at libsdl.org

Sounds as if the page flipping is synced to the refresh rate.
There is a
WGL

extension to explicitely control this behaviour but it’s much
easier if
you

simply use a tweak tool like NVMAX to disable VSYNC.

  • Daniel Vogel, Programmer, Epic Games Inc.

-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Bob

Cober
Sent: Monday, September 24, 2001 12:25 AM
To: sdl at libsdl.org
Subject: [SDL] SDL and OpenGL App

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!!!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Just a minor clarification -
The actual numbers were 159 fps Linux and 300 fps Windows at 1024x768.

Well, 159 Hz could be a real vertical refresh rate, wheras anything
above 200 Hz is most likely a result of retrace sync being disabled…

As to Linux and retrace sync, most Linux OpenGL drivers don’t support
retrace sync at all. (Seems that it’s usually the closed source drivers
that support it, while the Free/Open Source drivers don’t.)

Still, is a difference that big to be expected?

Depends on the drivers… Some Linux drivers are just about as fast as
the Windows drivers, but I don’t think that applies to all of them.

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Monday 24 September 2001 06:53, Bob Cober wrote: