PDA

View Full Version : How many faces can I draw?



defiopeon
04-09-2003, 12:28 AM
I tried to display 10.000 triangles of my Geforce Mx440 agp8x and there was not any problem. But when I try to display 100.000 triangles I have 2 FPS!! http://www.opengl.org/discussion_boards/ubb/frown.gif

sorry for my bad english

ben
04-09-2003, 01:47 AM
There could be a couple of reasons for this. If you are calculating all 100000 triangles on every frame, then this will cause a huge slow-down. Additionally, if you are not using efficient OpenGL constructs such as vertex arrays and/or display lists you won't see good performance.

My hunch is that you are probably doing more than just drawing the triangles on each frame.

defiopeon
04-09-2003, 11:21 PM
well indead on each frame i put something like that looping it 100 000 times


glBegin(GL_TRIANGLES);
{triangle coordinate call with glVertex3f(coordinates))
glEnd();

help me plz
resorry for my english

bonzaj
04-10-2003, 12:46 AM
Well.

I've found out that your card has a very small maxRecommendedVertex
and Index Count (4096) but this information is needed when you're
using Vertex arrays with DrawElement or GL_EXT_draw_range_elements.

Try to do so..

1. Use Lists (check glGenLists glCallList, glNewList glEndList) but
try not to put more that 4096 vertices per List. So You must make
chunks that are less than 4096/3 triangles when you're using
glBegin(GL_TRIANGLES);

2. Try to use gl_nv_vertex_array_range or gl_nv_vertex_array_rangle2
coz then You will be able to use 65535/3 triangles chunks (but I don't
know how to use this extension cos I've got ATI card sorry).

Bonzaj

defiopeon
04-10-2003, 05:09 AM
so if i want to run something with a good frame rate i will need nvidia's extention for opengl??????
(will i need other extention if i want to make it run with other cards like other geforce than mine or ati cards?????)

defiopeon
04-10-2003, 05:11 AM
an other question are the extention fitted in my driver or must i download something????

V-man
04-10-2003, 05:28 AM
There is a new extension called ARB_vertex_buffer_object but they are only available on the leaked drivers. I think 43.xx for nvidia

I don't know when ATI will have it.

defiopeon
04-10-2003, 06:31 AM
ok i got 43.45 .
but do you think they are more efficient??