From c67e74f2f60db508a76e56a380425d1c7b2ee495 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 28 Mar 2006 10:45:15 +0000 Subject: [PATCH] From Eric Sokolosky, added help for PRODUCER_CAMERA_BLOCK_ON_VSYNC --- src/osgProducer/OsgCameraGroup.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/osgProducer/OsgCameraGroup.cpp b/src/osgProducer/OsgCameraGroup.cpp index 64db575e5..82313f8a4 100644 --- a/src/osgProducer/OsgCameraGroup.cpp +++ b/src/osgProducer/OsgCameraGroup.cpp @@ -98,6 +98,13 @@ std::string extractCameraConfigFile(osg::ArgumentParser& arguments) static osg::ApplicationUsageProxy OsgCameraGroup_e1(osg::ApplicationUsage::ENVIRONMENTAL_VARIABLE,"PRODUCER_CAMERA_CONFIG_FILE ","specify the default producer camera config to use when opening osgProducer based applications."); +static osg::ApplicationUsageProxy OsgCameraGroup_e4( + osg::ApplicationUsage::ENVIRONMENTAL_VARIABLE, + "PRODUCER_CAMERA_BLOCK_ON_VSYNC", + "After the CPU finishes generating the scene for one frame," + " block the CPU until the start of the next frame. Same as pressing 'v'" + " within an osgProducer-based application."); + OsgCameraGroup::OsgCameraGroup() : Producer::CameraGroup() {