#include <RemoteViz/Rendering/NetworkPerformance.h>
| |
void | enableCalibration (bool val) |
bool | isCalibrationEnabled () const |
void | setMaxCalibrationDuration (unsigned int val) |
unsigned int | getMaxCalibrationDuration () const |
unsigned int | getBandwidth () const |
unsigned int | getLatency () const |
This class refers to measures of service quality of the network.
void RemoteViz::Rendering::NetworkPerformance::enableCalibration | ( | bool | val | ) |
Enable or disable network performance calibration.
Default value is true.
If calibration is enabled, a measurement of the latency and bandwidth is performed after the first connection establishment and before sending frames.
val | : true to enable, false to disable |
unsigned int RemoteViz::Rendering::NetworkPerformance::getBandwidth | ( | ) | const |
Gets the estimated network bandwidth between the service and the client.
This value influences the quality and the number of interactive frames sent to the client (see ConnectionSettings::setFrameEncodingPolicy). The higher the value, the better the quality and the number of interactive frames.
This value is estimated during the network calibration step.
unsigned int RemoteViz::Rendering::NetworkPerformance::getLatency | ( | ) | const |
Gets the estimated network latency (round-trip time) between the service and the client.
This value influences the quality of interactions. The lower the value, the better the user interactions. This value is estimated during the network calibration step.
unsigned int RemoteViz::Rendering::NetworkPerformance::getMaxCalibrationDuration | ( | ) | const |
Gets the network performance calibration maximum duration.
Default value is 5 seconds.
Frames will be send to the client after this duration.
bool RemoteViz::Rendering::NetworkPerformance::isCalibrationEnabled | ( | ) | const |
Return if the network performance calibration is enabled.
void RemoteViz::Rendering::NetworkPerformance::setMaxCalibrationDuration | ( | unsigned int | val | ) |
Sets the network performance calibration maximum duration.
Default value is 5 seconds.
Frames will be send to the client after this duration.
val | : max calibration duration in milliseconds |