[osg-users] compositeview and offscreen rendering

Robert Osfield robert.osfield at gmail.com
Mon Feb 1 02:10:20 PST 2016


Hi Peiman,

On 30 January 2016 at 07:09, Peiman Shakeri <peimansh2014 at gmail.com> wrote:
> 1.without any writing to disk, frame rate is still down.my WindowCaptureCallback write nothing into disk.

Then benchmark it, find out what the bottleneck is.

> 2.The start/stop of threading and releaseContext() is necessary for multi threading model because of off-screen rendering on topview.

Again, as I said before this is a red flag, this shouldn't be
required, that fact you have it in there suggests something else amiss
with the set up of your viewer.

> 3.please more explain about that single callback and the way on/off it.

Brace yourself for a radical bit of programming. It's called an if statement.

MyClass:Mymethod()
{
    if (active)
    {
         // do stuff
    }
}



More information about the osg-users mailing list