Ignore:
Timestamp:
Jun 13, 2016 1:02:31 PM (8 years ago)
Author:
ldelgass
Message:

Add commandline option to set max bitrate (in kbps)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/Renderer.h

    r6354 r6380  
    500500            }
    501501        }
     502        TRACE("Frame rate target: %.2f Hz", (float)getMaximumFrameRateInHertz());
     503        TRACE("Frame time target: %.2f msec", _minFrameTime * 1000.0f);
    502504    }
    503505
    504506    void setMaximumBitrate(double bitsPerSecond)
    505507    {
     508        TRACE("Setting max bitrate to %g", bitsPerSecond);
    506509        unsigned long bitsPerFrame = (_windowWidth * _windowHeight * 3 + 16) * 8;
    507510        double fps = bitsPerSecond / ((double)bitsPerFrame);
    508511        setMaximumFrameRateInHertz(fps);
     512        TRACE("Bandwidth target: %.2f Mbps", (float)(getMaximumBitrate()/1.0e6));
    509513    }
    510514
Note: See TracChangeset for help on using the changeset viewer.