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

Receiving packets heavily lags after a moment #310

Open
LuisMayo opened this issue Nov 29, 2023 · 1 comment
Open

Receiving packets heavily lags after a moment #310

LuisMayo opened this issue Nov 29, 2023 · 1 comment

Comments

@LuisMayo
Copy link

When sending and receiving messages at high rates the receiver quickly starts having trouble receiving the messages.

I've made a minimum reproduction repo to showcase this problem: https://github.com/LuisMayo/laminar-testing-latency
If you launch a "server" with cargo run and a client with cargo run -- --client a server and a client will run. The client sending messages each 16ms and both of them printing how much time has passed since last sent/received message

If you run them for a while you'll see how the "server" starts outputting higher time differences
image

Using --release mode doesn't seem to be of any help.
Even if the test uses 16ms. First time I encountered the problem was in fact at a much lower frequency as I was running some tests for a game, each 333ms.

My machine information as output by neofetch

OS: Linux Mint 21.2 x86_64 
Host: 20RA0016SP ThinkPad E14 
Kernel: 5.15.0-89-generic 
Uptime: 2 days, 2 hours, 20 mins 
Packages: 3144 (dpkg), 32 (flatpak) 
Shell: bash 5.1.16 
Resolution: 1920x1080 
DE: Cinnamon 5.8.4 
WM: Mutter (Muffin) 
WM Theme: Mint-Y-Dark-Purple (Mint-Y) 
Theme: Mint-X-Purple [GTK2/3] 
Icons: Mint-Y-Teal [GTK2/3] 
Terminal: gnome-terminal 
CPU: Intel i5-10210U (8) @ 4.200GHz 
GPU: Intel CometLake-U GT2 [UHD Graphics] 
@VanderBieu
Copy link

I have encountered similar issue. My case is that I was trying to send multiple images (single image 70kb), it could no longer received any packet right after around 5 images sent.

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

2 participants