[osg-users] [osgPlugins] Multiple video textures using ffmpeg plugin
Robert Osfield
robert.osfield at gmail.com
Thu Oct 5 07:54:42 PDT 2017
Hi Michael,
On 5 October 2017 at 15:41, Michael Maurus <michael.maurus at web.de> wrote:
> This was actually a nice hint.
> Only one of my CPUs was working at full capacity.
>
I haven't looked at the code recently so I'm a bit cold on the ffmpeg
implementation side. I don't recall any external way to control the
threads that the ffmpeg creates.
>From what it sounds like is the threads that the ffmpeg plugin is creating
is inheriting the affinity of the thread that created them. In OSG master
there is finer grained control over the affinity setting behaviour, in your
case it might be appropriate to disable the default setting of affinity.
In an ideal world you want to decided which threads you want to run on what
threads, but this reques knowledge of all the threads, their needs, and the
hardware you are working on.
FYI, the OSG by default tries to make a best guess based on your the number
of CPU cores the OS says the machine has and the configuration of your
viewer, this scheme doesn't know about any extra threads that plugins might
create though. This scheme is more hardwired in OSG-3.4 and prior
releases, so master might be the thing to use if you do end up needing more
control.
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171005/cea034bc/attachment-0001.html>
More information about the osg-users
mailing list