Ticket #31 (new enhancement)

Opened 1 year ago

Last modified 1 year ago

Feature Request for vrj::OsgApp

Reported by: patrick Assigned to:
Priority: minor Milestone:
Component: VR Juggler Version: HEAD
Keywords: open scene graph thread safety Cc:
Completion:

Description

From Doug McCorkle:

When running on a multi-pipe system with an OSG app it is often necessary to set this env var or put this flag in code:


As an env var just do a :

set OSG_THREAD_SAFE_REF_UNREF yes

Or in code, place before you construct your scene graph:

Referenced::setThreadSafeReferenceCounting(true);

If you are running your app single threaded (i.e. don't have multiple cameras working in seperate threads) then its likely you'll not need to enable thread safe ref counting. There is a performance hit for enabling it, and most users won't need it on, so its off by default.


As noted on the OSG list.

Would it be possbile for juggler to set this somewhere in OsgApp.h if there were multiple render threads present? Is it possbile to access that information in OsgApp.h?

Doug

Attachments

Change History

03/15/07 19:33:37 changed by patrick

I don't think that the application object in general has any way of knowing whether it is executing in a multi-threaded and/or a multi-pipe configuration. vrj::OsgApp isn't any special kind of application object that has more information about the Draw Manager configuration than any other subclass of vrj::App (or vrj::GlApp for that matter). If there were an Open Scene Graph Draw Manager, then certainly it would know and could set the environment variable appropriately.

03/15/07 19:34:16 changed by patrick

  • priority changed from major to minor.

From Doug McCorkle:

Now that ref_ptr's have been added to OsgApp.h I am not sure if this is even an issue anymore. It is probably still not a bad idea for a future feature request but is probably not as necessary as I once thought it was. At the time it was probably a band aid for a larger issue.


Add/Change #31 (Feature Request for vrj::OsgApp)




Change Properties
Action