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

Very low fps #301

Open
ElYaiko opened this issue Aug 26, 2023 · 24 comments
Open

Very low fps #301

ElYaiko opened this issue Aug 26, 2023 · 24 comments
Labels
bug Something isn't working

Comments

@ElYaiko
Copy link

ElYaiko commented Aug 26, 2023

Describe the bug
I'm using a self hosted rustdesk-server on my Mac with docker.
But when connecting to my remote desktop I barely get 20 fps (max) and an average of 14 fps.

Why it is slow? Even is being hosted on my own private network (LAN), I also have the custom image settings at max in the client, but is still slow.

Describe the environment

  • Install environment: docker
  • If available, the docker-compose.yaml file:
 version: '3'

networks:
  rustdesk-net:
    external: false

services:
  hbbs:
    container_name: hbbs
    ports:
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21118:21118
    image: rustdesk/rustdesk-server:latest
    command: hbbs
    volumes:
      - ./hbbs:/root
    # network_mode: "host"
    networks:
      - rustdesk-net
    depends_on:
      - hbbr
    restart: unless-stopped

  hbbr:
    container_name: hbbr
    ports:
      - 21117:21117
      - 21119:21119
    image: rustdesk/rustdesk-server:latest
    command: hbbr
    volumes:
      - ./hbbr:/root
    # network_mode: "host"
    networks:
      - rustdesk-net
    restart: unless-stopped

How to Reproduce the bug
Steps to reproduce the behavior:

  1. Given the previously described environment
  2. Do this and that
  3. I get this error

Expected behavior
I should get at least 40 fps > since is being ran LAN...

Additional context
Thanks!

Notes

  • Please write in english only. If you provide some images in different languages, you're required to write a translation in english.
  • In any case, NEVER put here the content if your id_ed25519 file
@ElYaiko ElYaiko added the bug Something isn't working label Aug 26, 2023
@palexdev
Copy link

palexdev commented Oct 4, 2023

It's not self-hosted, but I'm having the same issue. I enabled Direct IP on the host, so the connection is direct, but I only get from 4 to 10 fps

Edit: it's like if it doesn't refresh enough. After some time it seems to freeze, and I have to refresh it manually to see the updated screen.
More context: I have a virtual display adapter connected to my PC, and I'm using Rustdesk on my tablet as a secondary monitor by showing the virtual screen

Edit: use Anydesk, this software is garbage, just like the support it recieves

@adriadam10
Copy link

I'm having the same problem, in LAN, the connection is p2p and gives 30 fps. But outside LAN the connection is relayed and gives only 5 fps.
I tried to change to network_mode host, but it's still getting relayed

@paulsommer
Copy link

The same problem here: Self hostet; server and client on the same local network.
Another Problem: The upper right corner always overlays the gray box with the fps-info, and I don't know how to switch that off.

@NoteToSelfFindGoodNickname
Copy link

NoteToSelfFindGoodNickname commented Dec 3, 2023

Same problem here:
Speed 0.0.1kb/S
FPS: 1
Self hostet, server and client on the same local network.

@derkrasseleo
Copy link

Same problem here: Speed 0.0.1kb/S FPS: 1 Self hostet, server and client on the same local network.

Same here only 1-5 fps and low bitrate on client with local network connection.

@adriadam10
Copy link

i had the same problem and i solved it checking the quality settings in the rustdesk client app

@derkrasseleo
Copy link

i had the same problem and i solved it checking the quality settings in the rustdesk client app

Can't confirm, I tried all codecs, which lead to slightly different framerates, but all below 5 fps. I also tried changing to "optimize for reaction time", also didn't work.

@hexsix
Copy link

hexsix commented Mar 22, 2024

Privacy Mode will lower FPS. From 30fps to <5fps on my test.

@electricar
Copy link

I also have rustdesk self hosted on my Synology and have the same issue.
No matter what setting I choose, I get 14 fps on average (or even less).
Privacy mode is turned off.
Tried different settings.
When I enable h264 or h265 I get higher average fps (max was around 24fps sometimes), but as soon as I disconnect from the session and reconnect again, the delay shown on the quality monitor jumps up to 3-5s and is therefore unusable.

@Re-s
Copy link

Re-s commented May 8, 2024

me too

@sanwacompany
Copy link

me three

@londek
Copy link

londek commented Aug 4, 2024

i see, back to windows built-in remote desktop and for other use cases moonlight + sunshine + zerotier combo

@qyx268
Copy link

qyx268 commented Aug 14, 2024

me four..

@eebssk1
Copy link

eebssk1 commented Sep 14, 2024

also local direct connection, I can get 20 real fps if i move window real fast. but no more than that.
Update: I'm using it in a vm,soft encode only.
@rustdesk Since you are already using ffmpeg. Do you have plans to add mjpeg encode support so that we can get more performance without hardware accelaration?

@cheesecakegangster
Copy link

same

@vlsalsa
Copy link

vlsalsa commented Dec 20, 2024

same, realized that ffmpeg was not installed, going to try that. Do you all have GPUs on your devices?
Edit: ffmpeg installed didn't change anything.

@JerryXiao2024
Copy link

me too

@Theletha
Copy link

Theletha commented Feb 4, 2025

same, i have 10gbit/s (up & down) connection on host and around 300/83 mbit/s on client side.

Image

@JerryXiao2024
Copy link

JerryXiao2024 commented Feb 4, 2025 via email

@danielok1993
Copy link

danielok1993 commented Feb 5, 2025

I have found a solution, based on resources listed below I went from 1-5 fps to 20-30fps . It turns out you have to tweak mac default network settings. You have to input those everytime you reboot the machine. If you want to uderstand what these settings do follow the links below.

sudo sysctl -w net.inet.tcp.win_scale_factor=8
sudo sysctl -w net.inet.tcp.autorcvbufmax=33554432
sudo sysctl -w net.inet.tcp.autosndbufmax=33554432
sudo sysctl -w kern.ipc.maxsockbuf=4194304
sudo sysctl -w net.inet.tcp.delayed_ack=0

10GbE-recommendations-and-troubleshooting-v2

OSX Host Tuning

Superuser - slow rdp

Hopefully this is a good start, and we can go there to 30FPS+ with some more research

@eebssk1
Copy link

eebssk1 commented Feb 5, 2025

I have found a solution, based on resources listed below I went from 1-5 fps to 20-30fps . It turns out you have to tweak mac default network settings. You have to input those everytime you reboot the machine. If you want to uderstand what these settings do follow the links below.

sudo sysctl -w net.inet.tcp.win_scale_factor=8 sudo sysctl -w net.inet.tcp.autorcvbufmax=33554432 sudo sysctl -w net.inet.tcp.autosndbufmax=33554432 sudo sysctl -w kern.ipc.maxsockbuf=4194304 sudo sysctl -w net.inet.tcp.delayed_ack=0

10GbE-recommendations-and-troubleshooting-v2

OSX Host Tuning

Superuser - slow rdp

Hopefully this is a good start, and we can go there to 30FPS+ with some more research

I have similar tuning on my linux server.But does not have much effect.

@Theletha
Copy link

Theletha commented Feb 5, 2025

I have found a solution, based on resources listed below I went from 1-5 fps to 20-30fps . It turns out you have to tweak mac default network settings. You have to input those everytime you reboot the machine. If you want to uderstand what these settings do follow the links below.

sudo sysctl -w net.inet.tcp.win_scale_factor=8 sudo sysctl -w net.inet.tcp.autorcvbufmax=33554432 sudo sysctl -w net.inet.tcp.autosndbufmax=33554432 sudo sysctl -w kern.ipc.maxsockbuf=4194304 sudo sysctl -w net.inet.tcp.delayed_ack=0

10GbE-recommendations-and-troubleshooting-v2

OSX Host Tuning

Superuser - slow rdp

Hopefully this is a good start, and we can go there to 30FPS+ with some more research

im on windows 11 x64

@qyx268
Copy link

qyx268 commented Feb 6, 2025

I have found a solution, based on resources listed below I went from 1-5 fps to 20-30fps . It turns out you have to tweak mac default network settings. You have to input those everytime you reboot the machine. If you want to uderstand what these settings do follow the links below.

sudo sysctl -w net.inet.tcp.win_scale_factor=8 sudo sysctl -w net.inet.tcp.autorcvbufmax=33554432 sudo sysctl -w net.inet.tcp.autosndbufmax=33554432 sudo sysctl -w kern.ipc.maxsockbuf=4194304 sudo sysctl -w net.inet.tcp.delayed_ack=0

10GbE-recommendations-and-troubleshooting-v2

OSX Host Tuning

Superuser - slow rdp

Hopefully this is a good start, and we can go there to 30FPS+ with some more research

thanks! But my setup was accessing a windows virtualbox hosted in an ubuntu from my Android phone...

@saheljalal
Copy link

I'm a bit surprised as well. Seeing this highly recommended online as super fast and it's awesome that it can be self-hosted. However, in my local docker compose setup my mac machines feel very laggy. Native mac RD is much faster right now. Would be great to understand if it's some configuration issue or best practices around getting the best performance to boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests