Many-Many objects

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
szerg
Posts: 15
Joined: Mon Jun 05, 2006 4:23 pm

Many-Many objects

Post by szerg »

Hi!
I have bout 20000 objects in a database tiled into 730 smaller areas. Most of these areas have objects in them (some of them are empty): at least 100.
when im browsing in the 3d space my program checks if im near an area or not and displays it if needed ; it creates or removes 3d objects (maybe this is wrong).

These objects are Boxes with a texture on them. i have about 900 objects active at once and my program renders @ 120-150 FPS maximum.
resoluton: 640 x 480;
specs: PIV 3 GHz, 1 G ram, Asus N7600GS;

Is it possible for me to get higher fps?

maybe it's too slow because of rendering too many independent objects.
what(who) could help me?
thx
-SzERG
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Post by GameDude »

It is slow because of all the objects your rendering. You'll have to cut down on the amount of objects your using. Although 120-150 FPS is kinda high for your specs.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

For better performance when drawing lots of small meshes, you can batch them all together into one mesh.
For better performance when they are off screen, you can cull them by region.
If this still isn't fast enough, you will need to implement hardware buffers
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
szerg
Posts: 15
Joined: Mon Jun 05, 2006 4:23 pm

Post by szerg »

i cant batch them:(
i have to know which object is which
Post Reply