|
Rebel Fork Framework
|
Utility to evaluate client input quality and preferred input buffering. More...
#include <Urho3D/Replica/ClientInputStatistics.h>
Public Member Functions | |
| ClientInputStatistics (unsigned windowSize, unsigned maxInputLoss) | |
| void | OnInputReceived (NetworkFrame frame) |
| Notify that the input was received for given frame. | |
| unsigned | GetRecommendedBufferSize () const |
Private Member Functions | |
| void | UpdateHistogram () |
| unsigned | GetMaxRepeatedLoss () const |
Private Attributes | |
| const int | maxInputLoss_ |
| ea::optional< NetworkFrame > | latestInputFrame_ {} |
| ea::ring_buffer< unsigned > | numLostFrames_ |
| ea::vector< unsigned > | histogram_ |
| unsigned | bufferSize_ {} |
Utility to evaluate client input quality and preferred input buffering.