You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PredictedRigidbody RecordState can early out even when not intended #3926
PredictedRigbody -> RecordState function has an early out to not run except at a set interval. But OnRecievedState, which comes from the server, fires RecordState expecting it to always save the state so we can compare with the most up to date information. So I think there needs to be a function or parameter that lets the recording function always fire. This probably only causes minor out of sync issues unless you set the recordInterval high.
I personally moved the time check in the FixedUpdate loop itself before it calls RecordState.
`
void FixedUpdate() {
...
// instead of recording every fixedupdate, let's record in an interval.
// we don't want to record every tiny move and correct too hard.
if (NetworkTime.time < lastRecordTime + recordInterval) return;
RecordState();
}
Activity
Tshadow05 commentedon Oct 18, 2024
I personally moved the time check in the FixedUpdate loop itself before it calls RecordState.
`
`