[Solved] More about performance

Dirso

11-12-2006 12:22:53

I'm using the GranTurismoOgre to learn how to use the libraries I need.
The only thing I changed was the number of cars. With one or two, it works fine, but if I create 4 or more cars it becomes really slow. Is it an OgreODE or a pure Ogre issue?

Thanks a lot,
Dirso.

tuan kuranes

14-12-2006 13:49:50

Make sure you're using Release. Try Profiling to find where bottleneck is (amd codeanalyst or intel vtune). Perhaps you should go for ray based vehicle for NPC vehicle instead of wheel based.

Dirso

15-12-2006 12:33:18

Hi, Tuan!

Thanks for your replay. I'm new with Ogre and ODE and I really don't know what to do.
I'm still choosing my libraries and I've started learning about them. I don't know the vehicle types you told me. I was just using the demo to learn how to work with this class.
Have you ever tried to use more than 4 vehicles with this demo? When I create the vehicle it slows down when those cars are visible (on screen).
Is there any books I can read?

Thanks a lot,
Dirso.

tuan kuranes

15-12-2006 13:45:53

did you try adding them without physics to check if it's not only graphic related ?

Dirso

16-12-2006 01:22:14

How could I do that?

tuan kuranes

16-12-2006 15:54:41

hit 'p' in demos to disable/pause physics and check FPS difference.

Dirso

17-12-2006 23:04:02

Hi,
I made a benchmark with physics ON (FPS1) and OFF (FPS2) and I can tell I'm not happy at all. I'm totally new in game programming and the FPS numbers should be that low?
Thank you very much for all your help

CARS FPS1 FPS2
001 28.5 30.5
002 18.5 21.5
004 10.3 13.0

FPS1: Physics ON
FPS2: Physics OFF

Thanks a lot,
Dirso

rewb0rn

17-12-2006 23:12:25

using d3d in the release version with 1 car i have fps ~450, so i guess u just have a slow computer :)

Dirso

17-12-2006 23:42:29

Hi,

I have a Pentium IV Dual Core 2.66GHz 1GB RAM with a RADEON ATI 9550 256MB. I think it is not that slow. What could I possibly be doing wrong?

Thanks,
Dirso

luis

18-12-2006 09:36:21

I have an Intel C2 Duo 6600 + NV 7950GT and it can handle 8cars in a heightfield with a resolution of ~2.6 drawing units.

But GranTurismoOgre is using a mesh to build the trimesh (i think?), so i dont know....

Try with 2 cars, physics ON and the same graphics configuration (api, resolution etc) in the test you made before.
Move just a bit the cars to avoid the "autosleep" in both cars and see/write down the FPS at the begining then let the test run (avoiding the autosleep!) for 20 seconds or more and see if the FPS starts to drop down. If this happens then may be the problem could be in physics.
And again, be sure you are not running in debug :)

tuan kuranes

18-12-2006 15:35:57

From 10 to 30 FPS on your PC => you're in Debug mode. No Benchmark possible.
Compile in Release Mode, and do not enable any debug visualisation.
Read that :
http://www.ogre3d.org/wiki/index.php/Op ... _checklist

Dirso

18-12-2006 20:47:00

It was really a debug issue. Sorry for that.

Thanks a lot,
Dirso