Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Stonefish

Pages: [1]
1
General discussions / Benchmark : SDL vs SFML
« on: September 11, 2008, 09:47:44 am »
Quote from: "Wizzard"
This highly depends on the system you test with.


I think you don not understand me.
I simply wanted to say that your SDL test is not correct.
I perform the test with and without  SDL_DisplayFormat() on ONE computer. SDL test without SDL_DisplayFormat() was MUCH slower then SFML.

My hardware:
Quote

AMD Athlon X2 3800+  
GeForce 6100
Windows XP


As I see in SDL documentation SDL_DisplayFormat() is necessary to optimize bitmap blitting and that function call is recommended in all SDL tutorials.

I did not test sprite rotation and test drawing, but I think that sprite rotation will be slower in SDL even with my optimization because  SDL_gfx rotate image using CPU not GPU.

I like SFML more than SDL, but I think you have to change your SDL test code to show more truthful results.

2
General discussions / Benchmark : SDL vs SFML
« on: September 10, 2008, 05:35:30 pm »
I have made some optimization of SDL code by adding SDL_DisplayFormat() calls after image loading:
Quote

for( int i = 0; i < 5; ++i ) Images = SDL_DisplayFormat(Images);

After that I have very interesting results:
Quote

1/ Test : sprites
SDL  displayed 35 frames
SFML displayed 32 frames
--> SFML is 91% faster than SDL

2/ Test : alpha-blended sprites
SDL  displayed 25 frames
SFML displayed 31 frames
--> SFML is 124% faster than SDL

As you can see sprites drawing without alpha using SDL is faster then using SFML.

Pages: [1]