[osg-users] [propal] compare VertexArrayState with current int state::setCurrentVAS
Julien Valentin
julienvalentin51 at gmail.com
Mon Dec 31 07:32:44 PST 2018
Hi,
What do you think of this kind of change:
-adding a VertexArrayState comparator ( compare vbos and ebo and their dispatch index)
-in State::SetCurrentVertexArrayState(vas):
if(current->compare(vas))return;
current=vas;
It would add a little overcost but would be quite usefull in case Drawable can share their vas...
With the current design (createvascallback) it's possible but kind of tricky..:/
Thank you!
Cheers,
Julien
------------------------
Twirling twirling twirling toward freedom
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75369#75369
More information about the osg-users
mailing list