OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

DrawCallback serialization issue


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
jumaroch
Newbie


Joined: 11 Jun 2015
Posts: 9

PostPosted: Tue Nov 27, 2018 1:43 pm    Post subject:
DrawCallback serialization issue
Reply with quote

Hi,

We are currently working with osg 3.4.1 and noticed a dramatic drop in terms of performances when reading/writing our scene graph (in osgb format).
The scene graph contains a lot geometries with a custom osg::Drawable::DrawCallback implementation.
After a performance analysis, it appears that almost all the time is spent in the fallback that handles missing wrapper (cf. ObjectWrapperManager::findWrapper): when serializing the osg::Geometry, osg tries to find a wrapper named "osg::DrawCallback", which is not present in the registered wrappers list.

Is it a known limitation of osg, or am I doing something wrong ?
Ideally, I would like to skip the DrawCallback serialization, because they are defined at runtime.

Currently, I'm using a dirty workaround that consists in registering an empty object wrapper for a fake osg::DrawCallback class (instead of the actual nested class osg::Drawable::DrawCallback)

Cheers,
Romain
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Issue with osgt format on 3.6.x Riccardo Corsi General 1 Wed Apr 17, 2019 3:46 pm View latest post
No new posts osg-users Digest, Vol 138, Issue 27 Zachary1234 General 0 Tue Jan 01, 2019 1:16 am View latest post
No new posts DrawCallback serialization issue jumaroch General 1 Tue Nov 27, 2018 2:26 pm View latest post
No new posts DrawCallback serialization issue jumaroch General 0 Tue Nov 27, 2018 1:44 pm View latest post
No new posts DrawCallback serialization issue jumaroch General 0 Tue Nov 27, 2018 1:12 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP