Low FPS

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Scripter
Posts: 6
Joined: Mon Dec 17, 2007 3:20 pm

Low FPS

Post by Scripter »

I have a problem with the fps in a project im working on, regarding the rendering time. We have 29000 primitives(Polygons) in our scene and ive timed the rendering function which takes 15-16ms = about 62,5 FPS. Then add physx and someother stuff and we have 40-50FPS. All this seems a little bit low, ive coded Directx 9.0c demos with 100k polygons with higher FPS then this.
Computer specs: Intel Core2 6300(1.86ghz), 1gb ram, Geforce 8800GTS

Does anyone have a good reason for all this, maybe a quick fix for this? Because as it is now, its not playable(we havent even added in other players to play against)
We have tryied alot of Culling options, Z-enable/write and so on, still nothing.

We are using EDT_DIRECT3D9.
Thx
/Scripter
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

29k polys doesn't say too much about the actual scene. How many materials do you use, how many scene nodes are there? What parameters do you choose when creating the device, do you think that VBOs wiould help?
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

Maks sure your building and testing in release not debug! That happened to me once and I freaked out :oops: :lol:
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

With a release build of Irrlicht too!
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Danny Gilbert
Posts: 54
Joined: Thu Oct 25, 2007 1:38 pm
Location: Montreal, Canada

Vertical Sync.

Post by Danny Gilbert »

Check if you use Vertical Sync....
vsync if I remember.

Set it to FALSE.
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

rogerborg wrote:With a release build of Irrlicht too!
Oh yeah dude! Forgot about that :oops:
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

They are probably using stencil shadows :P But yes,

Polygon counts are largely irrelevant these days, most recent graphical applications on modern hardware are fillrate limited, this means that the low fps is not caused by vertex transformations but by the size/amount of textures, lighting and special effects.

How about a screenshot or a demo, when we see this we can more accurately describe whats causing a slow-down.

Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

We already discussed some stuff on IRC. It's a large map (static .x) with 30 textures (IIRC). I've suggested octree and VBOs, but didn't hear about FPS for those cases.
Post Reply