Added name and keep member variables to osg::GraphicsThread::Operation to allow
the names of the operations to be logged for stats purposes, or used when do searches of the operation list. The keep member variable tells the graphics thread run loop wether to remove the entry from the list once its been called.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
struct FrameOperation : public osg::GraphicsThread::Operation
|
||||
{
|
||||
FrameOperation(osg::CameraNode* camera, osg::FrameStamp* frameStamp):
|
||||
osg::GraphicsThread::Operation("Frame",true),
|
||||
_camera(camera),
|
||||
_frameStamp(frameStamp)
|
||||
{
|
||||
@@ -174,6 +175,7 @@ int main( int argc, char **argv )
|
||||
previous_tick = current_tick;
|
||||
|
||||
|
||||
// do the update traversal.
|
||||
loadedModel->accept(updateVisitor);
|
||||
|
||||
// issue the frame for each camera.
|
||||
|
||||
Reference in New Issue
Block a user