Re: [osg-users] osg::DeleteHander - the good, the bad and ugly

2007-09-01 Thread Cedric Pinson
I tried a little brut test about smart pointer from osg and the similar approch in boost with instrusive_ptr here the result with the source code: PROFILE_ROOT prt 100.00 glb 100.00 - time 31.785504 avg 31.785504 ncall 1 osg_smprt 2.85 glb 2.85 - time 0.905553 avg

[osg-users] osg::DeleteHander - the good, the bad and ugly

2007-08-31 Thread Robert Osfield
Hi All, With the introduction of the new DrawThreadPerContext and CullThreadPerCameraDrawThreadPerContext threading models came the use the osg::DeleteHandler, its not used in the other threading models as it isn't required. The DeleteHandler roles is to cache objects that were being deleted for

Re: [osg-users] osg::DeleteHander - the good, the bad and ugly

2007-08-31 Thread Robert Osfield
Hi André, On 8/31/07, André Garneau [EMAIL PROTECTED] wrote: FYI you might want to check the Boost::intrusive_ptr implementation (similar in concept to OSG's ref_ptr) as it is using an underlying implementation that does atomic reference counting (using CPU native Interlocked