Skip to content

Commit

Permalink
fix(prediction): Increase max prediction window to 10. (#849)
Browse files Browse the repository at this point in the history
increase max prediction window to 10, seems to remove freezes due to
latency in my testing, we can proceed to tune further once we have data
points. Concern is rollbacks max-cost may increase, in practice I have
not hit rewinds above 8 frames anyway.
  • Loading branch information
MaxCWhitehead authored Jul 29, 2023
1 parent bd46452 commit 02bf071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/networking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub const NETWORK_FRAME_RATE_FACTOR: f32 = 0.9;

/// Number of frames client may predict beyond confirmed frame before freezing and waiting
/// for inputs from other players.
pub const NETWORK_MAX_PREDICTION_WINDOW: usize = 8;
pub const NETWORK_MAX_PREDICTION_WINDOW: usize = 10;

/// The [`ggrs::Config`] implementation used by Jumpy.
#[derive(Debug)]
Expand Down

0 comments on commit 02bf071

Please sign in to comment.