Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFO: How to Set High Latency on Purpose #15

Open
PraxTube opened this issue Oct 10, 2023 · 2 comments
Open

INFO: How to Set High Latency on Purpose #15

PraxTube opened this issue Oct 10, 2023 · 2 comments

Comments

@PraxTube
Copy link
Owner

On Linux

To set a ping of 300ms, use

sudo tc qdisc add dev enp3s0 root netem delay 300ms

to reset it run

sudo tc qdisc del dev enp3s0 root

This uses iproute2, make sure that package is installed.

@PraxTube
Copy link
Owner Author

PraxTube commented Oct 15, 2023

To test really high pings you must set

let mut session_builder = ggrs::SessionBuilder::<GgrsConfig>::new()
    .with_max_prediction_window(40)
    .with_max_frames_behind(42)
    .expect("couldn't set max frames behind")

@PraxTube
Copy link
Owner Author

It is also easier to connect with a low ping (or none at all) and then set a high ping once a connection is established.

@PraxTube PraxTube pinned this issue Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant