Module |
|
Header |
/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/Services/NetworkPredictionService_Interpolate.inl |
Include |
#include "Services/NetworkPredictionService_Interpolate.inl" |
struct FFrame
Store received frames locally on the service. This is currently the only service that benefits from doing this, so implementing it on the service itself.
It would be nice if we could configure the NetRecv to use an array of TClientRecvData. This would also let us handle 'multiple NetRecvs in a frame' better here. All other services just care about 'latest received' state interpolating would benefit from storing all received frames. But this adds complications for just this one case. TClientRecvData also stores more than we would need to here - the InputCmd and ServerFrame aren't relevant for independent interpolation. This just seems simpler.