Testsprite collection

Hi all,

I created testsprite collection:

http://shinh.skr.jp/testsprite/

I do not want to say a language is better than another language with
the benchmark (the benchmark is not precise or fair and the results
will differ in several environments, and of course the charm of a
language is not its speed). If you love a language, you should use
it. But when you consider what language will you use in your SDL work,
the list may help, I wish. The list will be samples of SDL program in
several languages, too.

If you know/have other testsprite program which can be executed in my
environment, please tell me. I’ll add it if I can.------------------
shinichiro.h
hamaji at nii.ac.jp
http://shinh.skr.jp/

hey,

cool comparison there.

I have a better script for the pygame version. I have uploaded the
pygame example testsprite.py here:
http://rene.f0o.com/~rene/stuff/testsprite.py

A few things about the pygame versions and script results…

Uses an old version of pygame 1.6. Not pygame 1.7.1
Update is used instead of flip.
No convert is done after loading the image.
Does not use RLE.
Does not use pygames built in sprite class.

Your testsprite.py runs at 50fps on my test machines.
The testsprite.py in the pygame examples that runs at 70fps-85fps on
my test machine.

Using psyco the specializing compiler it gets within 5% of the C
example. At 85fps on my test machine.
python2.4 testsprite.py -psyco

The fastest flags for me are.
python2.4 testsprite.py -psyco -fullscreen

The other flags are
-fullscreen
-sw
-flip
-update

To run it with 1000 sprites use:
python2.4 testsprite.py -psyco -hw -fullscreen 1000

Note that at about 50% of screen space worth of sprites it starts
getting faster not to use dirty rects.

For lots of sprites I’d reccomend psyco.

Cheers.On 5/22/06, shinichiro.h wrote:

Hi all,

I created testsprite collection:

http://shinh.skr.jp/testsprite/

I do not want to say a language is better than another language with
the benchmark (the benchmark is not precise or fair and the results
will differ in several environments, and of course the charm of a
language is not its speed). If you love a language, you should use
it. But when you consider what language will you use in your SDL work,
the list may help, I wish. The list will be samples of SDL program in
several languages, too.

If you know/have other testsprite program which can be executed in my
environment, please tell me. I’ll add it if I can.


shinichiro.h
hamaji at nii.ac.jp
http://shinh.skr.jp/


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