How to using Irrlicht in a optimized way.

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

How to using Irrlicht in a optimized way.

Post by doqkhanh »

Hi, We are created a pretty big game with Irrlicht, but on my computer, the frame rate decreased from 33fps to 25 to 20 after team member create more animated mesh, AI, physic v.v..

And my question is: hey, are you using it in an optimized way? What model format you should use, how about fog, what're options should turn on, how about input params for fog, camera far value. How about default texture size, color depth. Should I use octtree, what compile option I should turn off v.v..

Since many of you using and create this Engine. Please say/write something about this question. How to using IrrLicht in a optimized way?

Thank you very much. And sorry about my very bad English.
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

here is just one.

there are a handful of useful tips in there you can use, mostly the general one, not gpu related.


http://developer.amd.com/media/gpu_asse ... _guide.pdf

http://209.85.173.104/search?q=cache:Cf ... d=17&gl=us
Image
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

model format is basically irrelevant because all models are loaded into the same internal mesh format.

fog is often used to hide a camera's far value which is a bit closer than you'd like and hence would show things being clipped in the distance.

Basically all these params cannot be told to you as they're application dependent. We can't say, oh your fog should start 500 units into the screen because that may work for one game but not for another.

Again texture sizes and colour depths depend on the game and also the system you're running on, do you know what your minimum requirements are for pcs?

octree's would probably be a good idea for your maps if they're big.
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

First up, are you using a release build of both Irrlicht and your application? Don't (literally) waste your time profiling a debug build.

Second, don't guess, profile. Use any profiling support in your compiler / IDE, or do unit-timing on your (release build!) app by setting up a consistent environment then turning discrete parts of it on and off to identify the bottlenecks.
Last edited by rogerborg on Sat Jul 05, 2008 11:30 am, edited 1 time in total.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Post by doqkhanh »

Hi Dlangdev, JP and Rogerborg, thank you very much.

If I enable fog for all scenenode, my frame rate dropted from 22 to 13-15. :shock:
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

post you test app here, i have time to test it.

make it easy to download, setup and run, OK?

add the code too, so i can play around with it.
Image
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

It's not just you enable fog... you enable fog to allow you to hide stuff... If you don't hide anything, you're just adding an effect on top of all that was already rendered.
Post Reply