Dirk Reiners wrote: > Hi Marcus, > > Marcus Lindblom wrote: > >> I think this could be related to Viewport::initialize() being called in >> one thread but the rendering being done in another? However, I use the >> same context for both threads, so I should be ok, right? >> > Hm, not necessarily. :( Some stuff is kept in local variables inside the > Window > class to avoid partial upstream changes invalidating things, so doing > render-related things like updating GLobjects in different treads can lead to > problems. > Indeed. I did some more analysis and noticed that I got two id's per object when trying to use different threads. >> How do you guys set things up with multi-threaded rendering? Is it >> usually a separate mutate-thread rather than rendering thread? Should >> that matter? >> > I don't think it should matter, as long as everything render-related is done > in > one thread (which can be a little painful, sorry :(). > Yup. But I should be able to pull that off without too much grief. :)
Cheers /Marcus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
