Hi Alex,

On 9/11/06, Alex Pecoraro <[EMAIL PROTECTED]> wrote:
My app is written on Linux. It is actually two apps that both need
access to the scene graph via shared memory region.

The OSG doesn't directly support overriding the memory allocation so that its uses shared memory.  You are the first users in 7 years to request this feature, despite lots of Performer apps already having been ported across.

Don Burn's uses shared memory in various examples he's written for training courses, but he use the shared memory for exchanging specific data rather than a whole scene graph.  Unfortunately Don is away on training this week so won't be able to post and nice simple example.

Perhaps you could override the new and delete with allocates to allocate everything to shared memory.  But... one will have to careful about ownership of the scene graph, ref counting itself would work but I'm not sure how well pthreads mutexes would handle being shared.

It may be just that you could re-code you app(s) to use the OSG in a more OSG way, rather than trying to use it as a drop in replacement.  The OSG isn't Performer, and doesn't try to be, each has their own strengths and weaknesses.  The OSG is extensible and flexible in a way that Performer could never be, the MP model that Performer used being a large part of what makes Performer less amenable to extensibility.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to