Skip to main content
gamedev.net
🔒 Locked

Display List Memory Allocation

Started by Geometrian 3 replies 600+ views
Original Post
Geometrian
Geometrian
Hi, How much video memory does a display list take up? I ask because I have several display lists for various objects in my game, and it would be simple to make them all at the same time. I have one gig of vram. If the display lists are about a hundred polygons big, how many can I have? Geometrian
[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]
Ingrater
Ingrater
I don't know exactly how the data is stored, but I think in some kind of vbo. So if you have 100 polys each with 4 vertices, each vertex with a position, color, normal, texcoord this would make 10 * 4 bytes per vertex.

So 100 * 4 * 10 * 4 = 16000

With such a small amout of vertices it would take in this case 16kb. So you don't have to bother about this, textures take much more vram.
http://3d.benjamin-thaut.de
Geometrian
Geometrian
Thanks! 16kb sounds awesome!
G
[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]
Rasmadrak
Rasmadrak
Remember that textures take up space too, if you decide to store them inside your displaylists.
Also, this may sound stupid, don't store the same object in several different displaylist. I.e store each model only once.
"Game Maker For Life, probably never professional thou." =)
Geometrian
Geometrian
How much space?
[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.