LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
17.95k stars 868 forks source link

Mouse movemet will cause high network latency #3012

Open Catiks opened 1 month ago

Catiks commented 1 month ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

mouse movement cause high network latency

when the mouse is static:

1723556873566

when the mouse is moving:

1723556929041

Expected Behavior

No response

Additional Context

No response

Host Operating System

Linux

Operating System Version

6.9.12-1-MANJARO

Architecture

64 bit

Sunshine commit or version

sunshine-git-2024.713.205505.r0.g18e7dfb-1

Package

Linux - AppImage

GPU Type

Nvidia

GPU Model

NVIDIA GeForce GTX 1050 Ti

GPU Driver/Mesa Version

Driver Version: 550.107.02

Capture Method

KMX (Linux)

Config

locale = zh
encoder = nvenc

Apps

No response

Relevant log output

[2024-08-13 21:04:16.197]: Info: Found display [wayland-0]
[2024-08-13 21:04:16.198]: Info: Found interface: wl_output(5) version 4
[2024-08-13 21:04:16.198]: Info: Found interface: zxdg_output_manager_v1(6) version 3
[2024-08-13 21:04:16.198]: Warning: Missing Wayland wire for wlr-export-dmabuf
[2024-08-13 21:04:16.198]: Info: /dev/dri/card0 -> simpledrm
[2024-08-13 21:04:16.198]: Warning: No render device name for: /dev/dri/card0
[2024-08-13 21:04:16.199]: Info: /dev/dri/card1 -> nvidia-drm
[2024-08-13 21:04:16.199]: Info: /dev/dri/card2 -> i915
[2024-08-13 21:04:16.225]: Info: Found display [wayland-0]
[2024-08-13 21:04:16.225]: Info: Found display [wayland-0]
[2024-08-13 21:04:16.225]: Info: Found interface: wl_output(5) version 4
[2024-08-13 21:04:16.225]: Info: Found interface: zxdg_output_manager_v1(6) version 3
[2024-08-13 21:04:16.226]: Info: Resolution: 1920x1080
[2024-08-13 21:04:16.226]: Info: Offset: 0x0
[2024-08-13 21:04:16.226]: Info: Logical size: 1920x1080
[2024-08-13 21:04:16.226]: Info: Name: DVI-D-1
[2024-08-13 21:04:16.226]: Info: Found monitor: Dell Inc. 23"
[2024-08-13 21:04:16.226]: Info: -------- Start of KMS monitor list --------
[2024-08-13 21:04:16.226]: Info: Monitor 1 is DVI-D-1: Dell Inc. 23"
[2024-08-13 21:04:16.226]: Info: --------- End of KMS monitor list ---------
[2024-08-13 21:04:16.233]: Warning: Gamepad ds5 is disabled due to 权限不够
[2024-08-13 21:04:16.233]: Info: Trying encoder [nvenc]
[2024-08-13 21:04:16.233]: Info: Screencasting with KMS
[2024-08-13 21:04:16.233]: Info: /dev/dri/card0 -> simpledrm
[2024-08-13 21:04:16.233]: Warning: No render device name for: /dev/dri/card0
[2024-08-13 21:04:16.233]: Info: Found monitor for DRM screencasting
[2024-08-13 21:04:16.233]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024-08-13 21:04:16.233]: Info: Found connector ID [35]
[2024-08-13 21:04:16.233]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024-08-13 21:04:16.233]: Warning: Attempting to use NVENC without CUDA support. Reverting back to GPU -> RAM -> GPU
[2024-08-13 21:04:16.233]: Info: System tray created
[2024-08-13 21:04:16.234]: Info: /dev/dri/card0 -> simpledrm
[2024-08-13 21:04:16.234]: Warning: No render device name for: /dev/dri/card0
[2024-08-13 21:04:16.234]: Info: Found monitor for DRM screencasting
[2024-08-13 21:04:16.234]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024-08-13 21:04:16.234]: Info: Found connector ID [35]
[2024-08-13 21:04:16.234]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024-08-13 21:04:16.261]: Info: Creating encoder [h264_nvenc]
[2024-08-13 21:04:16.261]: Info: Color coding: SDR (Rec. 601)
[2024-08-13 21:04:16.261]: Info: Color depth: 8-bit
[2024-08-13 21:04:16.261]: Info: Color range: JPEG
[2024-08-13 21:04:16.299]: Warning: [h264_nvenc @ 0x5903bffc7200] Multiple reference frames are not supported by the device
[2024-08-13 21:04:16.299]: Error: [h264_nvenc @ 0x5903bffc7200] Provided device doesn't support required NVENC features
[2024-08-13 21:04:16.565]: Error: Could not open codec [h264_nvenc]: 函数未实现
[2024-08-13 21:04:16.566]: Info: Creating encoder [h264_nvenc]
[2024-08-13 21:04:16.566]: Info: Color coding: SDR (Rec. 601)
[2024-08-13 21:04:16.566]: Info: Color depth: 8-bit
[2024-08-13 21:04:16.566]: Info: Color range: JPEG
[2024-08-13 21:04:16.865]: Info: Creating encoder [hevc_nvenc]
[2024-08-13 21:04:16.865]: Info: Color coding: SDR (Rec. 601)
[2024-08-13 21:04:16.865]: Info: Color depth: 8-bit
[2024-08-13 21:04:16.865]: Info: Color range: JPEG
[2024-08-13 21:04:16.896]: Warning: [hevc_nvenc @ 0x5903bffc7200] Multiple reference frames are not supported by the device
[2024-08-13 21:04:16.896]: Error: [hevc_nvenc @ 0x5903bffc7200] Provided device doesn't support required NVENC features
[2024-08-13 21:04:17.162]: Error: Could not open codec [hevc_nvenc]: 函数未实现
[2024-08-13 21:04:17.162]: Info: Creating encoder [hevc_nvenc]
[2024-08-13 21:04:17.162]: Info: Color coding: SDR (Rec. 601)
[2024-08-13 21:04:17.162]: Info: Color depth: 8-bit
[2024-08-13 21:04:17.162]: Info: Color range: JPEG
[2024-08-13 21:04:17.462]: Info: Creating encoder [av1_nvenc]
[2024-08-13 21:04:17.462]: Info: Color coding: SDR (Rec. 601)
[2024-08-13 21:04:17.462]: Info: Color depth: 8-bit
[2024-08-13 21:04:17.462]: Info: Color range: JPEG
[2024-08-13 21:04:17.497]: Warning: [av1_nvenc @ 0x5903bffc7200] Codec not supported
[2024-08-13 21:04:17.497]: Error: [av1_nvenc @ 0x5903bffc7200] Provided device doesn't support required NVENC features
[2024-08-13 21:04:17.764]: Error: Could not open codec [av1_nvenc]: 函数未实现
[2024-08-13 21:04:17.764]: Info: Creating encoder [av1_nvenc]
[2024-08-13 21:04:17.764]: Info: Color coding: SDR (Rec. 601)
[2024-08-13 21:04:17.764]: Info: Color depth: 8-bit
[2024-08-13 21:04:17.764]: Info: Color range: JPEG
[2024-08-13 21:04:17.796]: Warning: [av1_nvenc @ 0x5903bffc7200] Codec not supported
[2024-08-13 21:04:17.796]: Error: [av1_nvenc @ 0x5903bffc7200] Provided device doesn't support required NVENC features
[2024-08-13 21:04:18.062]: Error: Could not open codec [av1_nvenc]: 函数未实现
[2024-08-13 21:04:18.065]: Info: Screencasting with KMS
[2024-08-13 21:04:18.065]: Info: /dev/dri/card0 -> simpledrm
[2024-08-13 21:04:18.065]: Warning: No render device name for: /dev/dri/card0
[2024-08-13 21:04:18.065]: Info: Found monitor for DRM screencasting
[2024-08-13 21:04:18.065]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024-08-13 21:04:18.065]: Info: Found connector ID [35]
[2024-08-13 21:04:18.065]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024-08-13 21:04:18.065]: Warning: Attempting to use NVENC without CUDA support. Reverting back to GPU -> RAM -> GPU
[2024-08-13 21:04:18.066]: Info: /dev/dri/card0 -> simpledrm
[2024-08-13 21:04:18.066]: Warning: No render device name for: /dev/dri/card0
[2024-08-13 21:04:18.066]: Info: Found monitor for DRM screencasting
[2024-08-13 21:04:18.066]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024-08-13 21:04:18.066]: Info: Found connector ID [35]
[2024-08-13 21:04:18.066]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024-08-13 21:04:18.075]: Info: Creating encoder [hevc_nvenc]
[2024-08-13 21:04:18.075]: Info: Color coding: SDR (Rec. 709)
[2024-08-13 21:04:18.075]: Info: Color depth: 10-bit
[2024-08-13 21:04:18.075]: Info: Color range: JPEG
[2024-08-13 21:04:18.379]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024-08-13 21:04:18.379]: Info: 
[2024-08-13 21:04:18.379]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024-08-13 21:04:18.379]: Info: 
[2024-08-13 21:04:18.379]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024-08-13 21:04:18.379]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024-08-13 21:04:18.381]: Info: Adding avahi service Sunshine
[2024-08-13 21:04:18.381]: Info: Configuration UI available at [https://localhost:47990]
[2024-08-13 21:04:19.150]: Info: Avahi service Sunshine successfully established.
gschintgen commented 1 month ago
Attempting to use NVENC without CUDA support. Reverting back to GPU -> RAM -> GPU

For Manjaro it's best to use the Arch packages. Or the repository at https://github.com/LizardByte/pacman-repo.

Catiks commented 1 month ago
Attempting to use NVENC without CUDA support. Reverting back to GPU -> RAM -> GPU

For Manjaro it's best to use the Arch packages. Or the repository at https://github.com/LizardByte/pacman-repo.

Thanks,I'll try

Catiks commented 1 month ago

sorry, but i got new error: [capture] -- [kms] [locale] -- [zh] [adapter_name] -- [/dev/dri/renderD128] [2024:08:14:16:40:01]: Info: Sunshine version: 0.23.1 [2024:08:14:16:40:01]: Info: /dev/dri/card0 -> simpledrm [2024:08:14:16:40:01]: Warning: No render device name for: /dev/dri/card0 [2024:08:14:16:40:01]: Info: /dev/dri/card1 -> nvidia-drm [2024:08:14:16:40:01]: Info: /dev/dri/card2 -> i915 [2024:08:14:16:40:01]: Info: Found display [wayland-0] [2024:08:14:16:40:01]: Info: Found display [wayland-0] [2024:08:14:16:40:01]: Info: Found interface: wl_output(5) version 4 [2024:08:14:16:40:01]: Info: Found interface: zxdg_output_manager_v1(6) version 3 [2024:08:14:16:40:01]: Info: Resolution: 1920x1080 [2024:08:14:16:40:01]: Info: Offset: 0x0 [2024:08:14:16:40:01]: Info: Logical size: 1920x1080 [2024:08:14:16:40:01]: Info: Name: DVI-D-1 [2024:08:14:16:40:01]: Info: Found monitor: Dell Inc. 23" [2024:08:14:16:40:01]: Info: -------- Start of KMS monitor list -------- [2024:08:14:16:40:01]: Info: Monitor 1 is DVI-D-1: Dell Inc. 23" [2024:08:14:16:40:01]: Info: --------- End of KMS monitor list --------- [2024:08:14:16:40:01]: Info: System tray created [2024:08:14:16:40:01]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024:08:14:16:40:01]: Info: Trying encoder [nvenc] [2024:08:14:16:40:01]: Info: Screencasting with KMS [2024:08:14:16:40:01]: Info: /dev/dri/card0 -> simpledrm [2024:08:14:16:40:01]: Warning: No render device name for: /dev/dri/card0 [2024:08:14:16:40:01]: Info: /dev/dri/card1 -> nvidia-drm [2024:08:14:16:40:01]: Info: Found monitor for DRM screencasting [2024:08:14:16:40:01]: Info: Found connector ID [76] [2024:08:14:16:40:01]: Info: Found cursor plane [38] [2024:08:14:16:40:01]: Info: SDR color coding [Rec. 601] [2024:08:14:16:40:01]: Info: Color depth: 8-bit [2024:08:14:16:40:01]: Info: Color range: [JPEG] [2024:08:14:16:40:01]: Warning: [h264_nvenc @ 0x594cbc3d4040] Multiple reference frames are not supported by the device [2024:08:14:16:40:01]: Error: [h264_nvenc @ 0x594cbc3d4040] Provided device doesn't support required NVENC features

[2024:08:14:16:40:02]: Info: SDR color coding [Rec. 601] [2024:08:14:16:40:02]: Info: Color depth: 8-bit [2024:08:14:16:40:02]: Info: Color range: [JPEG] [2024:08:14:16:40:02]: Info: SDR color coding [Rec. 601] [2024:08:14:16:40:02]: Info: Color depth: 8-bit [2024:08:14:16:40:02]: Info: Color range: [JPEG] [2024:08:14:16:40:02]: Warning: [hevc_nvenc @ 0x594cbc3d4040] Multiple reference frames are not supported by the device [2024:08:14:16:40:02]: Error: [hevc_nvenc @ 0x594cbc3d4040] Provided device doesn't support required NVENC features

[2024:08:14:16:40:02]: Info: SDR color coding [Rec. 601] [2024:08:14:16:40:02]: Info: Color depth: 8-bit [2024:08:14:16:40:02]: Info: Color range: [JPEG] [2024:08:14:16:40:02]: Info: SDR color coding [Rec. 601] [2024:08:14:16:40:02]: Info: Color depth: 8-bit [2024:08:14:16:40:02]: Info: Color range: [JPEG] [2024:08:14:16:40:02]: Warning: [av1_nvenc @ 0x594cbc3d4040] Codec not supported [2024:08:14:16:40:02]: Error: [av1_nvenc @ 0x594cbc3d4040] Provided device doesn't support required NVENC features

2024:08:14:16:40:03: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:08:14:16:40:03: Info: Color range: JPEG: Warning: [av1_nvenc @ 0x594cbc3d4040] Codec not supported 2024:08:14:16:40:03: Error: [av1_nvenc @ 0x594cbc3d4040] Provided device doesn't support required NVENC features

2024:08:14:16:40:03: Info: Screencasting with KMS 2024:08:14:16:40:03: Info: /dev/dri/card0 -> simpledrm 2024:08:14:16:40:03: Warning: No render device name for: /dev/dri/card0 2024:08:14:16:40:03: Info: /dev/dri/card1 -> nvidia-drm 2024:08:14:16:40:03: Info: Found monitor for DRM screencasting 2024:08:14:16:40:03: Info: Found connector ID 76: Info: Found cursor plane 38: Info: SDR color coding Rec. 709: Info: Color depth: 10-bit 2024:08:14:16:40:03: Info: Color range: [JPEG]

2024:08:14:16:40:03: Info: // Ignore any errors mentioned above, they are not relevant. //

2024:08:14:16:40:03: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc [nvenc] terminate called after throwing an instance of 'boost::wrapexcept' what(): No such node (root.devices) zsh: IOT instruction (core dumped) sunshine ` terminate called after throwing an instance of 'boost::wrapexcept' what(): No such node (root.devices) zsh: IOT instruction (core dumped) sunshine

gschintgen commented 1 month ago

Please try the pre-release version, not 0.23.1. (The boost error should be solved.)

Catiks commented 1 month ago

Please try the pre-release version, not 0.23.1. (The boost error should be solved.)

Thanks very much, now it works.

gschintgen commented 1 week ago

Please try the pre-release version, not 0.23.1. (The boost error should be solved.)

Thanks very much, now it works.

Just to be clear: did this also solve the initial problem? (If so this issue can be closed.)