Mystery

I’m new with SDL. I’m reading the Programming Linux Games book.
I have made two apps to benchmark in FPS an animation. All this is because my
map editor (http://alu.dc.ufc.br/~silveira/temp/btk009rc1.tar.gz) is running
very very slowly at my friends machines.

The app with source code, an shell script to compile and binaries are at
http://alu.dc.ufc.br/~silveira/temp/benchmark.tar.gz .

The first program anim1 is an simple animation, the second, anim2 is the same
program but with SDL_DisplayFormat and SDL_DOUBLEBUF strategies.

So, some strange result that I got:
Distro - Resolution - Compiled in there? - anim1 - anim2
Kurumin - 800x600 - yes - 26 - 100
XFDL - 800x600 - no - 29 - 130
Debian Sarge - 1280x1024 - yes - 23 - 49
Mandrake - ?? - no - (low) - (low)
Kurumin - 800x600 - no - (high)- (high)
Slackware 10 - 1024x768 - no - (low) - (low)
Fedora Core 2 - 1024x768 - no - (low) - (low)

The only relation that I can found is all 800x600 machines got a good result.

There is something wrong with my code, but I could not find this by myself. I
need some help.

Thanks.

Jos? Maria Silveira Neto wrote:

I’m new with SDL. I’m reading the Programming Linux Games book.
I have made two apps to benchmark in FPS an animation. All this is because my
map editor (http://alu.dc.ufc.br/~silveira/temp/btk009rc1.tar.gz) is running
very very slowly at my friends machines.

The app with source code, an shell script to compile and binaries are at
http://alu.dc.ufc.br/~silveira/temp/benchmark.tar.gz .

The first program anim1 is an simple animation, the second, anim2 is the same
program but with SDL_DisplayFormat and SDL_DOUBLEBUF strategies.

So, some strange result that I got:
Distro - Resolution - Compiled in there? - anim1 - anim2
Kurumin - 800x600 - yes - 26 - 100
XFDL - 800x600 - no - 29 - 130
Debian Sarge - 1280x1024 - yes - 23 - 49
Mandrake - ?? - no - (low) - (low)
Kurumin - 800x600 - no - (high)- (high)
Slackware 10 - 1024x768 - no - (low) - (low)
Fedora Core 2 - 1024x768 - no - (low) - (low)

The only relation that I can found is all 800x600 machines got a good result.

There is something wrong with my code, but I could not find this by myself. I
need some help.

You seem to imply that all these computers have different specs. That
will surely explain the differences in performance you get.

Stephane

This is not due to the different distors running different graphicsdrivers?

Best regards
Daniel Liljeberg> ----- Original Message -----

From: silveiraneto@gmail.com (Jose Maria Silveira Neto)
To:
Sent: Sunday, November 21, 2004 5:05 AM
Subject: [SDL] Mystery

I’m new with SDL. I’m reading the Programming Linux Games book.
I have made two apps to benchmark in FPS an animation. All this is because
my
map editor (http://alu.dc.ufc.br/~silveira/temp/btk009rc1.tar.gz) is
running
very very slowly at my friends machines.

The app with source code, an shell script to compile and binaries are at
http://alu.dc.ufc.br/~silveira/temp/benchmark.tar.gz .

The first program anim1 is an simple animation, the second, anim2 is the
same
program but with SDL_DisplayFormat and SDL_DOUBLEBUF strategies.

So, some strange result that I got:
Distro - Resolution - Compiled in there? - anim1 - anim2
Kurumin - 800x600 - yes - 26 - 100
XFDL - 800x600 - no - 29 - 130
Debian Sarge - 1280x1024 - yes - 23 - 49
Mandrake - ?? - no - (low) - (low)
Kurumin - 800x600 - no - (high)- (high)
Slackware 10 - 1024x768 - no - (low) - (low)
Fedora Core 2 - 1024x768 - no - (low) - (low)

The only relation that I can found is all 800x600 machines got a good
result.

There is something wrong with my code, but I could not find this by
myself. I
need some help.

Thanks.


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

I’d be looking for much more consistant tests. Eg. if you’re going to
compile on some of the OS’s, do it all the way across the board. Are you
using optimizations? What version of the compiler are you using? What sort
of specs are we looking at for the computer(s) these tests are being done
on?> ----- Original Message -----

From: silveiraneto@gmail.com (Jose Maria Silveira Neto)
To:
Sent: Sunday, November 21, 2004 5:05 PM
Subject: [SDL] Mystery

I’m new with SDL. I’m reading the Programming Linux Games book.
I have made two apps to benchmark in FPS an animation. All this is because
my
map editor (http://alu.dc.ufc.br/~silveira/temp/btk009rc1.tar.gz) is
running
very very slowly at my friends machines.

The app with source code, an shell script to compile and binaries are at
http://alu.dc.ufc.br/~silveira/temp/benchmark.tar.gz .

The first program anim1 is an simple animation, the second, anim2 is the
same
program but with SDL_DisplayFormat and SDL_DOUBLEBUF strategies.

So, some strange result that I got:
Distro - Resolution - Compiled in there? - anim1 - anim2
Kurumin - 800x600 - yes - 26 - 100
XFDL - 800x600 - no - 29 - 130
Debian Sarge - 1280x1024 - yes - 23 - 49
Mandrake - ?? - no - (low) - (low)
Kurumin - 800x600 - no - (high)- (high)
Slackware 10 - 1024x768 - no - (low) - (low)
Fedora Core 2 - 1024x768 - no - (low) - (low)

The only relation that I can found is all 800x600 machines got a good
result.

There is something wrong with my code, but I could not find this by
myself. I
need some help.

Thanks.


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