don - Small changes to support Mac OSX CGL build

small unused variable warning fix.
This commit is contained in:
Don BURNS
2004-10-24 05:50:59 +00:00
parent 1e8ee75b66
commit 12a1ef5552
3 changed files with 19 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ CXXFILES =\
INC += $(FREETYPE_INCLUDE)
LIBS += -losgText $(OSG_LIBS) $(FREETYPE_LIB) $(OTHER_LIBS)
LIBS += -losgText $(OSG_LIBS) $(FREETYPE_LIB) $(OTHER_LIBS) -L/usr/X11R6/lib -lX11
TARGET_BASENAME = freetype

View File

@@ -90,7 +90,8 @@ void OsgSceneHandler::drawImplementation(Producer::Camera &)
double minimumTargetMaxFrameTime = 0.010; // 10ms.
double targetMaxFrameTime = osg::minimum(timeForPreviousFrame, minimumTargetMaxFrameTime);
double maximumAvailableTime = 0.0025; // 2.5ms.
// Unused variable warning
//double maximumAvailableTime = 0.0025; // 2.5ms.
double drawCostFactor = 2.0; // must be greater than 1 to account for the extra cost of emptying the OpenGL fifo.
double frameFactor = 0.9; // must be less than 1, to compensate for extra time spent in update and swap buffers etc.
double timeLeftTillEndOfFrame = targetMaxFrameTime*frameFactor - timeForCullAndDraw*drawCostFactor;