Hi Marcus, > Hi, > > I noticed a while ago that 1.8 has VBO's. This is nice. :) > > However, since it always creates STATIC_DRAW buffers, it's not very > efficient if one has dynamic geometry. From what I gather, the buffers > are even deleted/created every time. This isn't really optimal. The > current VBO impl looks a bit 'quick' as well (a global VBO list?), so it > might be more thoroughly implemented in 2.0?
yes it is just a replacement for display lists, doing it right would be quite complicated for 1.x. VBO's are quite nice even if you use them only for static stuff. - saves plenty of main memory (only with the new nvidia 97.x drivers) - the creation of vbo's is much faster (about 6 times) - rendering is faster if you use triangle lists with cache optimized indices. > To fix the current situation (we have a performance problem in > updateVBO), I was thinking that you should simply not use VBO's if > dlistcache is false. I can make a patch for that. :) Hmm I don't get this one. If you enable vbo's you always render with vbo's the dlistcache flag doesn't matter. With vbo's disabled it behaves like before when the dlistcache is false everything is rendered in immediate mode. > Of course, it would be better to: > * Use DYNAMIC-/STREAM_DRAW if dlist-cache is set to false (and perhaps > rename it to a static/dynamic flag to make it more clear?) the dlistcache flag has nothing to do with dynamic static whatever it just enables or disables display lists rendering, of course for vertex animations you should disable it. I was thinking about adding a vbo mode to change the STREAM_DRAW stuff. > * Not recreate buffers unless the size/type has changed. yeah that would be nice. It is just a bit tricky to detect it. > Patching for that would take more time, and might not be worth it if 2.0 > is doing it better? I think in 2.0 it's completely different but better ask Dirk he implemented it. Andreas > Comments? > > Cheers, > /Marcus > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
