Rebel Fork Framework
Urho3D::ClientInputStatistics Class Reference

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_ {}

Detailed Description

Utility to evaluate client input quality and preferred input buffering.


The documentation for this class was generated from the following files:
  • Urho3D/Replica/ClientInputStatistics.h
  • Urho3D/Replica/ClientInputStatistics.cpp