Changeset 6380 for geovis/trunk/Renderer.h
- Timestamp:
- Jun 13, 2016, 1:02:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Renderer.h
r6354 r6380 500 500 } 501 501 } 502 TRACE("Frame rate target: %.2f Hz", (float)getMaximumFrameRateInHertz()); 503 TRACE("Frame time target: %.2f msec", _minFrameTime * 1000.0f); 502 504 } 503 505 504 506 void setMaximumBitrate(double bitsPerSecond) 505 507 { 508 TRACE("Setting max bitrate to %g", bitsPerSecond); 506 509 unsigned long bitsPerFrame = (_windowWidth * _windowHeight * 3 + 16) * 8; 507 510 double fps = bitsPerSecond / ((double)bitsPerFrame); 508 511 setMaximumFrameRateInHertz(fps); 512 TRACE("Bandwidth target: %.2f Mbps", (float)(getMaximumBitrate()/1.0e6)); 509 513 } 510 514
Note: See TracChangeset
for help on using the changeset viewer.