Hi everyone, In OpenMW we were having issues where fixed affinity was giving much worse results than the OS scheduler (e.g. because it stops the process being moved to a colder core when one heats up, and therefore hurts dynamic frequency scaling). As of OSG 3.5.5, osgViewer::ViewerBase has had the setUseConfigureAffinity function available to disable setting the affinity, and using it works for us. You need to call it on the viewer before it sets up threading and otherwise it just works.
Hope this helps, Chris On Tuesday, 3 August 2021 at 08:50:12 UTC+1 [email protected] wrote: > Hi Anders, > > The Affinity class is meant to help control affinity, and make it possible > to override the default behavior. It's quite a few years since I worked on > it so I can't recall the details. I will have discussed this work here on > osg-users so searching for osg::Affinity in the archives as well as the > code base will likely be helpful. > > Robert, > -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/a2ce07f0-2e4a-4920-bb22-fd5b786f10e3n%40googlegroups.com.
