Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
rtt.hpp File Reference

Round trip time of a session, smoothed like TCP's, with its jitter. More...

#include <aegis2d/net/export.hpp>
#include <chrono>
#include <cstdint>

Go to the source code of this file.

Classes

class  aegis2d::net::RttEstimator
 Smoothed round trip time and its variation, from round trip samples. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::net
 Binary serialization, UDP/TCP sockets and the network thread.
 

Detailed Description

Round trip time of a session, smoothed like TCP's, with its jitter.

Measured from the acknowledgements every datagram already carries: when the peer acknowledges a datagram for the first time, the time since it was sent is a sample.