[not a bug] Irr render - draw3dline and others ...

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
dmitrii
Posts: 27
Joined: Wed Aug 30, 2006 11:52 am
Location: Kiev, Ukraine
Contact:

[not a bug] Irr render - draw3dline and others ...

Post by dmitrii »

this functions are real **** :roll: :twisted: :?: :!:

i do my debug for ways maps with draw3dline
and what i see ? bugs with fps...

for example load to irrlicht a lot of objects
set to all objects wireframe mode
after that load irrlicht with directx 9.0 and NVPerfHUD

screens from my project

with draw3dlines :
Image
DP calls = 12771

with out them :
Image
DP calls = 273 (it's normal)

in most games dp calls ~1000
Image
Image
Only Opera Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

What does this post mean? And why do you think that unsupported hardware will tell you any significant?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Right, where is the bug !?!?! :shock:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
dmitrii
Posts: 27
Joined: Wed Aug 30, 2006 11:52 am
Location: Kiev, Ukraine
Contact:

Post by dmitrii »

i only ask why irr render draw one line in one request to video card
it's very slowly method
Image
Image
Only Opera Image
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I don't really see any 3D lines in either of your screenshots...

If you call draw3DLine to draw a single line, Irrlicht will ask the driver to draw that one line. If you want to draw more than one line with a single call, then you need to manage your own vertex and index buffers [you can use an SMeshBuffer for this] and call driver->drawVertexPrimitiveList() with EPT_LINE_STRIP or EPT_LINES.

The downside is that this method only works with the D3D and OGL drivers.

Travis
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

But still, where is the bug, for this thread is supposed to be in the bugs forum ???
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The bug might be one where the driver was supposed to batch primitive draws but does not do so. However, Irrlicht does not batch anything across methods so it's up to you to make the line drawing more efficient. Simply follow vitek's advice.
Post Reply