[osg-users] Who is frustrated not to serialize their bufferobject configuration?

Julien Valentin julienvalentin51 at gmail.com
Wed Mar 29 09:37:53 PDT 2017

Hi Robert
I apologize if the term "frustrated" i used in the title of my post could be interpreted provocative by one as invested in osg as you are. I was a little upset by our recurrent misscommunications at the moment i wrote.
In fact, I was sure to be the only one with this problem...

Moreover, all the "issues" i talk with you are linked (TFFB,IndirectDraw,BaseVertexDraw..). So it's a real pain in the brain for me to find a common brainstorm start. 

For ex:
In a previous post http://forum.openscenegraph.org/viewtopic.php?t=16470&highlight=basevertex I talk about an example code overriding osg default bo allocation policy in order to optimize drawsubmission with BaseVertex drawcall and shared VAS.Without a way to serialize this policy override I'm not able to serialize my work and would have to use a dirty post loading visitor

so the start of our discussion could be this use case...(as it really gives double performance in all bench I've done )
The example
The minimum mod i added to remove useless calls to glBindVAO

> https://github.com/mp3butcher/OpenSceneGraph/blob/8275ab2dd2e325f19c0312ec340392fc677bdd33/include/osg/VertexArrayState
> https://github.com/mp3butcher/OpenSceneGraph/blob/8275ab2dd2e325f19c0312ec340392fc677bdd33/include/osg/State
> https://github.com/mp3butcher/OpenSceneGraph/blob/8275ab2dd2e325f19c0312ec340392fc677bdd33/src/osg/State.cpp
> https://github.com/mp3butcher/OpenSceneGraph/blob/8275ab2dd2e325f19c0312ec340392fc677bdd33/src/osg/VertexArrayState.cpp

....(when you'll have time to spend of course..:/)

Again, sorry to be a pain in the $#%% adding new problems in the bag.

robertosfield wrote:
> Hi Julien,
> On 29 March 2017 at 15:49, Julien Valentin <> wrote:
> > Okay, i'll ask you a simple question:
> > How BufferIndexBinding can be serialized?
> > if we follow the rule homogeneity BufferIndexBinding atttribute should be a BufferData and not BufferObject+index+offset+size (to hide bo details is it is)
> > What is your feeling of such change in BufferIndexBinding?
> > 
> I'm not the author of BufferIndexBinding and haven't personally needed
> to use it yet, which is one of the reasons why I'm suggesting a
> concrete example of usage so how all the classes interrelate and what
> needs to be done.
> It may be that BufferIndexBinding needs to evolve or that
> BufferData/BufferObject also need to be adapted with it.  I don't
> know, I can't provide answers till I have more time looking into the
> topic,
> Please remember the majority of my public work on the OSG is unpaid,
> looking into issues that users are having like this costs me time,
> time that I has to be spread right across the various demands from the
> community.  I can't know everything about every details
> instantaneously.
> If I push back and say I need more to go on then it's not because I'm
> lazy, it's because I have too many competing items, I have to try and
> make efficient use of my time to be able to handle them all.
> Robert.
> _______________________________________________
> osg-users mailing list
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  ------------------
> Post generated by Mail2Forum

Read this topic online here:

More information about the osg-users mailing list