[vlc-devel] [vlc-commits] opengl: use vertex/texture array instead of glBegin/glEnd

Ilkka Ollakka ileoo at videolan.org
Thu Mar 22 06:57:59 CET 2012


On Thu, Mar 22, 2012 at 12:58:11AM +0100, Jean-Baptiste Kempf wrote:
> On Wed, Mar 21, 2012 at 08:00:00PM +0100, Ilkka Ollakka wrote :
> > vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Mar 21 17:07:52 2012 +0200| [3ef9d0a7912fbf871d50c44d4d2c7def55c34756] | committer: Ilkka Ollakka

> > opengl: use vertex/texture array instead of glBegin/glEnd

> For curiousity, what does it change?

Using immediate mode (glBegin/glEnd) is simple and basic way of
rendering opengl, also the slowest one. Using vertex arrays and stuff
should decrease calls on rendering and be faster.

But like I said, speed increase in this case is propably minimal and
mostly benefit comes from littlebit cleaner code. I did not actually do
any performance evaluation to give numbers how much it changes speed,
but I can do if youre interested.

-- 
Ilkka Ollakka
Green light in a.m. for new projects.  Red light in P.M. for traffic
tickets.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120322/a03f30df/attachment.sig>


More information about the vlc-devel mailing list