Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: Blitz Amateur on January 06, 2008

Title: SDL and C speed tests (Fire and Cubes)
Post by: Blitz Amateur on January 06, 2008
So I finally got my head out of basic and started some work in C.

I've managed to port my fire routine, and start porting my 3D routines as well. I'm currently curious as to how well they run on systems other than my own. (The output from the program will be in stdout.txt)

Title: Re: SDL and C speed tests (Fire and Cubes)
Post by: Jim on January 06, 2008
Good to have you back BA, and great to see you having a go at C :)
I tried them on my 1.6GHz laptop.
With the cubes I get 60-70fps.  They look lovely :)

Unfortunately the fire one crashes, and I get this in stderr.txt
QuoteFatal signal: Segmentation Fault (SDL Parachute Deployed)
I suspect somewhere you are reading or writing some memory you don't own. :(

A quick tip - Please don't put sdl.dll in windows\system32.  It belongs in the folder with the app.  sdl.dll gets updated pretty regularly, and I suspect some versions aren't compatible with one another.  For Vista users, it's not really possible anyway. :)

Jim
Title: Re: SDL and C speed tests (Fire and Cubes)
Post by: Blitz Amateur on January 06, 2008
Ahh, okay. I'll fix that.

Thanks for the speeds too! :D
Title: Re: SDL and C speed tests (Fire and Cubes)
Post by: benny! on January 06, 2008
@BA:

Yes - the cubes example works very well and smooth. The fire example
crashes without any error message.
Title: Re: SDL and C speed tests (Fire and Cubes)
Post by: Rbz on January 06, 2008
The cubes works fine, not much fps but it's due to my GeForce 6600GT which doesn't like software rendering too much.
QuoteAverage Milliseconds per frame is : 22.422461
Average FPS is : 44.598138

The fire example just exit with this info:
QuoteFatal signal: Segmentation Fault (SDL Parachute Deployed)
Title: Re: SDL and C speed tests (Fire and Cubes)
Post by: Stonemonkey on January 06, 2008
for the cubes:

Average Milliseconds per frame is : 12.287974
Average FPS is : 81.380378

and the fire ones close right after starting.

AMD64 @2.1GHz, 1Gb, winXP, ATI x1650
Title: Re: SDL and C speed tests (Fire and Cubes)
Post by: Tetra on January 12, 2008
Hey BA!  :updance:


I have the same problem with the fire too.

The cubes ran great though :)

Average Milliseconds per frame is : 14.257143
Average FPS is : 70.140280

AMD 64 dual core 2.1, 6600 GT

How you finding C? :)
Title: Re: SDL and C speed tests (Fire and Cubes)
Post by: Paul on January 13, 2008
Same problem here, fire doesn't work, same error

the cubes run smooth though
Average Milliseconds per frame is : 5.490765
Average FPS is : 182.123981