make the fps counter more stable
This commit is contained in:
@@ -1642,7 +1642,7 @@ void View3DInventorViewer::renderScene(void)
|
||||
std::stringstream stream;
|
||||
stream.precision(1);
|
||||
stream.setf(std::ios::fixed | std::ios::showpoint);
|
||||
stream << renderTime << " ms / " << 1000./renderTime << " fps";
|
||||
stream << framesPerSecond[0] << " ms / " << framesPerSecond[1] << " fps";
|
||||
draw2DString(stream.str().c_str(), SbVec2s(10,10), SbVec2f(0.1f,0.1f));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user