Good news! After long attempts I finally found a work around that fixes this issue.
Under FluxCapacitor.cs, cast the following global variable (line 108~):
protected bool initializing;
Under FluxCapacitor.DoFixedUpdate(), add the following code (line 121~):
public void DoFixedUpdate(){
if (initializing && _remotePlayerNextExpectedFrame != UFE.currentFrame)
{
this.PlayerManager.Initialize(UFE.currentFrame, UFE.config.networkOptions.maxBufferSize);
_remotePlayerNextExpectedFrame = UFE.currentFrame;
initializing = false;
}
Finally, under FluxCapacitor.Initialize, add this toggle (line 340~):
public virtual void Initialize(long currentFrame, int maxHistoryLength){
initializing = true;
Its not the most elegant of the fixes, but it does the job.
This fix will be available on UFE 2.2. I'll start working on packaging asap.
Like UFE? Please rate and review us on the
Asset Store!
Questions about the Forum? Check out our
Karma FAQ.
Don't forget to check our
discord channel.