Re: [osg-users] [propal] compare VertexArrayState with current int state::setCurrentVAS

2019-01-02 Thread Robert Osfield
Hi Julien, Minimizing the CPU cost of administration of vertex array objects and vertex buffer objects is core consideration to the design and implementation of the VertexArrayState. Any extra cost over what there exist already is not acceptable. Cheers, Robert. On Mon, 31 Dec 2018 at 16:11,

[osg-users] [propal] compare VertexArrayState with current int state::setCurrentVAS

2018-12-31 Thread Julien Valentin
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