Skip to content

Receiving packets heavily lags after a moment #310

@LuisMayo

Description

@LuisMayo

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] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions