Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  OGL 1.1 question: vertex array vs. display list  (Read 2301 times)
0 Members and 1 Guest are viewing this topic.
Offline TheAnalogKid
« League of Dukes »

JGO Coder


Projects: 3



« Posted 2006-09-25 18:55:12 »

Hi all,

I know this is not related to JOGL but here is my question. I'm developing with a video card that supports only OGL 1.1 so I guess that for 2D rendering the optimizations available to me are vertex arrays and display lists (and maybe some still unknown extensions?). My question is which of these options is the most performing? My understanding is that both can be used to cache on the client vertex operations. When I read the OGL doc I really don't know what is the difference between the two in terms of functionnality.

Thanks for your help!

EDIT: I just realized that I posted in joal instead of jogl. Sorry for that simply clicked the wrong link. Can a moderator move the topic please?

Offline ryanm
« League of Dukes »

Senior Member


Projects: 1


Used to be bleb


« Reply #1 - Posted 2006-09-25 19:24:14 »

Display lists are a way to record a set of openGL operations for future use. Everything you do when defining the display list is stored on the video card (and possibly optimised).
Vertex arrays a simply a way to batch up a load of data and send it to the video card in one go, rather than with multiple calls to glVertex, glTexCoord, etc. The data is not stored on the video card in this case (That's what VBOs do).
Offline TheAnalogKid
« League of Dukes »

JGO Coder


Projects: 3



« Reply #2 - Posted 2006-09-25 19:36:30 »

OK thanks bleb. I guess that for the same operations display lists execute much faster that vertex arrays. When you say video card, do you mean the framebuffer?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ryanm
« League of Dukes »

Senior Member


Projects: 1


Used to be bleb


« Reply #3 - Posted 2006-09-25 20:31:45 »

OK thanks bleb. I guess that for the same operations display lists execute much faster that vertex arrays.

Yeah, using a display list to draw some geometry will be faster than a vertex array, but the drawback is that the display list cannot be altered without completely redefining it, wheras you can put different data into the vertx array with no penalty.
Thus, use display lists for stuff that is not likely to change. There's also a certain number of opengl calls below which using a display list to batch them up is counter-productive, but I forget what it is. Be on the safe side and pack as much stuff in there as possible.

Quote
When you say video card, do you mean the framebuffer?

No, I mean the actual video hardware. Display lists are stored in VRAM, so they can be executed directly without any transfer from main memory to the video hardware. Vertex arrays reside in main memory, and so must be transfered to the video card every frame.
Offline TheAnalogKid
« League of Dukes »

JGO Coder


Projects: 3



« Reply #4 - Posted 2006-09-25 20:42:19 »

ok thanks again.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (84 views)
2013-05-17 12:29:12

alaslipknot (92 views)
2013-05-16 12:24:48

gouessej (123 views)
2013-05-15 15:53:38

gouessej (117 views)
2013-05-15 15:17:58

theagentd (127 views)
2013-05-15 06:01:13

theagentd (114 views)
2013-05-15 06:00:54

StreetDoggy (158 views)
2013-05-14 06:56:26

kutucuk (180 views)
2013-05-12 08:10:36

kutucuk (180 views)
2013-05-12 06:36:09

UnluckyDevil (187 views)
2013-05-11 20:09:57
Complex number cookbook
by Roquen
2013-04-24 03:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 07:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 07:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 07:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 08:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 07:17:38

Java Data structures
by Roquen
2013-03-29 04:21:12

Topic Request
by kutucuk
2013-03-22 12:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.07 seconds with 20 queries.