Jump to content


Vertex Array slower ?


10 replies to this topic

#1 Vifani

    New Member

  • Members
  • PipPip
  • 22 posts

Posted 01 September 2003 - 03:41 PM

Someone can tell me why when I use Vertex, Normal and TextCoord Array the performance are slower?

If I render my scene with glTexCood, glNormal3f and glVertex3f I have many more fps !

#2 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 01 September 2003 - 04:04 PM

how many vertices are you passing to opengl with the vertex buffer ???
If Prolog is the answer, what is the question ?

#3 davepermen

    Senior Member

  • Members
  • PipPipPipPip
  • 1306 posts

Posted 01 September 2003 - 05:47 PM

what hardware? on ati cards, i can only HIGHLY recomment to use GL_ARB_vertex_buffer_object.. vertex arrays ARE rather slow on them.. a Known Issue by ati, but they only say use vbo :D
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#4 Vifani

    New Member

  • Members
  • PipPip
  • 22 posts

Posted 01 September 2003 - 11:04 PM

anubis said:

how many vertices are you passing to opengl with the vertex buffer ???
I use a Radeon 9200. I think that this is the problem.

Can you tell me what is the difference between Vertex Buffers and Vertex Buffer Object? How can I use them? I pass only verticies or also normals and texcoords ?

#5 Dia

    DevMaster Staff

  • Administrators
  • 1097 posts

Posted 02 September 2003 - 02:12 AM

Check out this thread: it explains the differences between vertex arrays and vertex buffers.

http://www.devmaster.net/forums/index.php?...p?showtopic=460

#6 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 02 September 2003 - 08:35 AM

and this doc pretty well explains how to use them : sgi extension registry
also there is a tutorial here on devmaster
If Prolog is the answer, what is the question ?

#7 Vifani

    New Member

  • Members
  • PipPip
  • 22 posts

Posted 02 September 2003 - 12:01 PM

Thanks.

#8 Vifani

    New Member

  • Members
  • PipPip
  • 22 posts

Posted 02 September 2003 - 03:20 PM

I have implemented Vertex Array with a larger amount of verticies and now the performance are pretty good also on Radeon graphic cards.

I proceed to use Vertex Buffers ;)

#9 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 02 September 2003 - 06:41 PM

Quote

I have implemented Vertex Array with a larger amount of verticies

which is why i asked =] the advantage of using vertex arrays usually disappears when you don't supply enough vertices
If Prolog is the answer, what is the question ?

#10 Vifani

    New Member

  • Members
  • PipPip
  • 22 posts

Posted 02 September 2003 - 06:59 PM

Yes :D

Can you tell me why now I have less fps with Vertex Buffer ?

#11 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 02 September 2003 - 09:49 PM

hmm, this depends on how you use them. the best way of course to load the data up once and never touch it again. especially if you declared the data as static data you shouldn't change it in the buffer or you might get serious performance hits. also on older cards buffer objects might not be fully supported by the hardware
If Prolog is the answer, what is the question ?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users