[gnome-remote-desktop] session-rdp: Default to max 60 FPS, when using graphics pipeline
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] session-rdp: Default to max 60 FPS, when using graphics pipeline
- Date: Thu, 14 Oct 2021 14:42:43 +0000 (UTC)
commit 26e8122ffc256bbc84b5d44d758c8e512a30c46f
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Thu Sep 30 08:34:59 2021 +0200
session-rdp: Default to max 60 FPS, when using graphics pipeline
With the graphics pipeline, gnome-remote-desktop has a way to control
to control the encoding rate based on the speed of decoding and
displaying frames on the client side.
With the PipeWire stream running at 60 FPS also decreases the frame
latency between when the frame was rendered by mutter and when
gnome-remote-desktop can start encoding it.
A 60 FPS PipeWire stream does not mean that 60 are always reached.
The maximum FPS is determined by the minimum of the encoding rate in
gnome-remote-desktop and the frame acknowledge rate of the RDP client.
src/grd-session-rdp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 195767b..6d9fe5f 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -1617,7 +1617,8 @@ rdp_peer_post_connect (freerdp_peer *peer)
rdp_settings->PointerCacheSize = MIN (rdp_settings->PointerCacheSize, 100);
session_rdp->rdp_surface = g_malloc0 (sizeof (GrdRdpSurface));
- session_rdp->rdp_surface->refresh_rate = 30;
+ session_rdp->rdp_surface->refresh_rate = rdp_settings->SupportGraphicsPipeline ? 60
+ : 30;
if (rdp_settings->SupportGraphicsPipeline &&
!rdp_settings->NetworkAutoDetect)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]