Windows slowness

I’ve noticed when running my program on Linux I get a very good
framerate of about 33fps. When I switch to Win98 and run the exact same
program I get a pathetic framerate of about 8fps. I’m using a double
buffer and SDL_Flip to draw the screen. I’m using the same computer so
I’d think that all the same hardware options are available. I’m using
the precompiled SDL.dll from the website.
Is there anything specific for Windows I should check? Most of the posts
about speed here seem to have the opposite problem (Linux being slower
than Windows.) what gives?

Newsgroups: loki.open-source.sdl

I’ve noticed when running my program on Linux I get a very good
framerate of about 33fps. When I switch to Win98 and run the exact same
program I get a pathetic framerate of about 8fps. I’m using a double
buffer and SDL_Flip to draw the screen. I’m using the same computer so
I’d think that all the same hardware options are available. I’m using
the precompiled SDL.dll from the website.
Is there anything specific for Windows I should check? Most of the posts
about speed here seem to have the opposite problem (Linux being slower
than Windows.) what gives?

It’s almost certainly a case of your coding being inefficient. Since you
haven’t given us enough information, we can’t really say in what way. Could
be you aren’t using SDL_DisplayFormat(). Could be you are using a higher
color depth in Windows than Linux. Those are 2 things you could check.

-Jason

----- Original Message -----
From: jeg@visi.net (John Garrison)
To:
Sent: Saturday, March 30, 2002 2:11 PM
Subject: [SDL] Windows slowness

I don’t do heavy Win32 SDL work, but Linux and Win32 should operate
about the same. Using SDL_DisplayFormat() (if you aren’t already) is
definately a good idea, as is checking to make sure that you are getting
the double buffer in Win32.On Sat, 2002-03-30 at 11:47, Jason Hoffoss wrote:

----- Original Message -----
From: “John Garrison”
Newsgroups: loki.open-source.sdl
To:
Sent: Saturday, March 30, 2002 2:11 PM
Subject: [SDL] Windows slowness

I’ve noticed when running my program on Linux I get a very good
framerate of about 33fps. When I switch to Win98 and run the exact same
program I get a pathetic framerate of about 8fps. I’m using a double
buffer and SDL_Flip to draw the screen. I’m using the same computer so
I’d think that all the same hardware options are available. I’m using
the precompiled SDL.dll from the website.
Is there anything specific for Windows I should check? Most of the posts
about speed here seem to have the opposite problem (Linux being slower
than Windows.) what gives?

It’s almost certainly a case of your coding being inefficient. Since you
haven’t given us enough information, we can’t really say in what way. Could
be you aren’t using SDL_DisplayFormat(). Could be you are using a higher
color depth in Windows than Linux. Those are 2 things you could check.

-Jason


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