1
Graphics / OpenGL performance issue
« on: July 26, 2008, 08:37:05 pm »
Hi,
we've got a big OpenGL performance problem here.
We are programming a space strategy game using SFML. The framework got bigger and bigger and we are dealing with huge performance problems right now.
Here are the main features which will give you a little review of our situation:
-There are about 9 planets which are drawn and rotating.
-We calculate Point on Map of the Mouse every Frame.
-1 Light Source
-Zoom, Move Map, Rotate around fixed point on Map is possible
At the moment we reach about 200 fps in window mode.
(Graphic Card: 9800 Pro ATI Radeon, CPU amd 2500+)
My friend with an ATI x800xt and amd 3500+ gets about 350 fps. We're both using the newest catalyst drivers (8.7).
To trace the bottleneck we stopped the time for some functions. This didn't really work out because there are two functions which take the most time, drawFunctions and
eventfunction(incl. Point on Map calculation).
Therefore we wrote 2 simple OpenGL testprograms. One in SDL and one in SFML.
There's only some drawing without much calculation at events and without texturing and lighting.
We are drawing 9 gluSpheres with 32 slices and 32 stacks which are rotating in front of a black background.
For testing we also included DisplayLists.
Here are my Results (the x800xt results):
SFML
draw: about 700fps (1000fps)
draw with DL(DisplayLists): about 1500 fps (2800fps)
SDL
draw: about 1000 fps (1800fps)
draw with DL: about 1700 fps (3000fps)
Now the real big difference can be seen in FULLSCREEN mode:
FULLSCREEN
SFML
draw: about 700fps (900fps)
draw with DL(DisplayLists): about 1600 fps (3100fps)
SDL
draw: about 1100 fps (1800fps)
draw with DL: about 3400 fps (6200fps)
Sure, we would like to stick with SFML, because we are big fans of this library and it is really good, but since
we got this performance problem we are wondering if we should switch to SDL.
Maybe someone here can tell us why there is such a big differnce in FULLSCREEN Mode to SDL?
We could post the source of the two testprograms if needed. We tried to have the same things activated at those programs on
each libaray. Is it possible that there are tweaks in SFML that we aren't aware of? If so please help us and tell us how we can improve our program using SFML. Thanks!
we've got a big OpenGL performance problem here.
We are programming a space strategy game using SFML. The framework got bigger and bigger and we are dealing with huge performance problems right now.
Here are the main features which will give you a little review of our situation:
-There are about 9 planets which are drawn and rotating.
-We calculate Point on Map of the Mouse every Frame.
-1 Light Source
-Zoom, Move Map, Rotate around fixed point on Map is possible
At the moment we reach about 200 fps in window mode.
(Graphic Card: 9800 Pro ATI Radeon, CPU amd 2500+)
My friend with an ATI x800xt and amd 3500+ gets about 350 fps. We're both using the newest catalyst drivers (8.7).
To trace the bottleneck we stopped the time for some functions. This didn't really work out because there are two functions which take the most time, drawFunctions and
eventfunction(incl. Point on Map calculation).
Therefore we wrote 2 simple OpenGL testprograms. One in SDL and one in SFML.
There's only some drawing without much calculation at events and without texturing and lighting.
We are drawing 9 gluSpheres with 32 slices and 32 stacks which are rotating in front of a black background.
For testing we also included DisplayLists.
Here are my Results (the x800xt results):
SFML
draw: about 700fps (1000fps)
draw with DL(DisplayLists): about 1500 fps (2800fps)
SDL
draw: about 1000 fps (1800fps)
draw with DL: about 1700 fps (3000fps)
Now the real big difference can be seen in FULLSCREEN mode:
FULLSCREEN
SFML
draw: about 700fps (900fps)
draw with DL(DisplayLists): about 1600 fps (3100fps)
SDL
draw: about 1100 fps (1800fps)
draw with DL: about 3400 fps (6200fps)
Sure, we would like to stick with SFML, because we are big fans of this library and it is really good, but since
we got this performance problem we are wondering if we should switch to SDL.
Maybe someone here can tell us why there is such a big differnce in FULLSCREEN Mode to SDL?
We could post the source of the two testprograms if needed. We tried to have the same things activated at those programs on
each libaray. Is it possible that there are tweaks in SFML that we aren't aware of? If so please help us and tell us how we can improve our program using SFML. Thanks!