quote:Original post by Raduprv
_the_phantom_, it depends. If you have like 30 models, with 600 polys each, 200 frames/model, then the memory use can get insane, so sometimes begin/end is prefered.
In my engine, it is user configurable if the drawing is done the VA or begin/end way.
it all has to go in memory somewhere, be that in a glbegin/end pair or in data, infact i'd argue that putting in an array would be SMALLER than doing the glbegin/end pair as (a) you can pack the data together and overlap and (b) dont have all the redundant code for drawing laying around which takes up more space in ram.
but, hey, if you want to waste ram thats upto you
btw, with your example you are already eatting betwen 216Meg (worse case, raw triangles with no duplicate vertices) and 72meg (best case, perfect tri-strip with no duplicate vertices) of ram with just your model data, never mind any level data or anything, which is why unless you have a VERY small animation set, you shouldnt go for storing each frame and instead should use key framing or skeleton animation...
[Phantom Web | OpenGL Window Framework ]
"i wonder why i do that... type words which are nuffin like the word i wanted every now and badger"
[edited by - _the_phantom_ on May 10, 2004 2:27:14 AM]