计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260400106-917.doi: 10.11896/jsjkx.260400106

• 网络&通信 • 上一篇    下一篇

面向远程桌面的低延迟交互手柄重定向设计与实现

汪钇辰1, 朱傲天2, 付振新3,4, 马晨5, 杜量5, 樊春3,4   

  1. 1 北京大学软件与微电子学院 北京 100000
    2 北京大学计算机学院 北京 100000
    3 北京大学计算中心 北京 100000
    4 北京大学长沙计算与数字经济研究院 长沙 410000
    5 联通智能制造科技产业(广东)有限公司 广东 深圳 518000
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 付振新(fuzhenxin@pku.edu.cn)
  • 作者简介:(fuzhenxin@pku.edu.cn)
  • 基金资助:
    新疆生产建设兵团科技发展专项资金项目面向中高时延网络环境的跨域异构可信算力协同调度系统关键技术研发与应用(2025AB027)

Low-latency Gamepad Redirection System for Remote Desktop Interaction

WANG Yichen1, ZHU Aotian2, FU Zhenxin3,4, MA Chen5, DU Liang5, FAN Chun3,4   

  1. 1 School of Software and Microelectronics,Peking University,Beijing 100000,China
    2 School of Computer Science,Peking University,Beijing 100000,China
    3 Computer Center,Peking University,Beijing 100000,China
    4 Peking University Changsha Institute for Computing and Digital Economy,Changsha 410000,China
    5 China Unicom Intelligent Manufacturing Technology & Industry(Guangdong) Co.,Ltd.,Shenzhen,Guangdong 518000,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:WANG Yichen,born in 2000,postgra-duate.His main research interests include software engineering and high-performance computing.
    FU Zhenxin,born in 1995,postgra-duate,engineer,is a member of CCF(No.A7098M).His main research interest is high-performance computing.
  • Supported by:
    This work was supported by the Science and Technology Development Special Fund Project of Xinjiang Production and Construction Corps(2025AB027).

摘要: 随着云计算与5G技术的快速发展,远程桌面系统已广泛应用于远程游戏、虚拟仿真等高实时性交互场景,这些场景对本地输入设备的远端重定向提出了迫切需求。手柄作为一种典型的专用输入设备,除游戏控制外,还可模拟鼠标与键盘操作、工业控制、虚拟显示以及辅助专业软件输入等,具备跨场景的输入泛化能力,对远程交互体验的提升具有重要价值。然而,现有远程桌面方案对手柄等专用输入设备的重定向支持较为有限,普遍缺少对传输延迟的针对性优化以及存在高轮询率手柄输入失真等问题,难以满足高实时性远程交互场景的需求。为此,提出了一种手柄重定向方案,在已有远程桌面基础上,通过构建差异化的多通道传输机制降低手柄控制数据的端到端延迟,通过引入基于高精度时间戳的事件重放机制解决高轮询率手柄在远程传输中的输入失真问题,并提出基于贝塞尔曲线的摇杆路径补全算法消除死区引起的操作不连续性,为远程桌面场景提供高实时、低延迟且与本地操作无差别的手柄使用体验。实验结果证明,所提出的手柄重定向方案能够在良好网络状况下获得30 ms以内端到端延迟,并且在网络抖动条件下仍能维持较低且稳定的交互延迟,可满足远程游戏等多场景的需求。

关键词: 远程桌面, 手柄重定向, 低延迟交互, 多通道传输, 手柄事件重放, 路径补全

Abstract: With the rapid development of cloud computing and 5G technologies,remote desktop systems have been widely applied in highly real-time interactive scenarios such as remote gaming and virtual simulation.These scenarios impose urgent demands on the remote redirection of local input devices.As a typical specialized input device,the game controller is not only used for game control,but can also emulate mouse and keyboard operations,support industrial control,virtual display interaction,and assist input in professional software,thereby exhibiting strong cross-scenario input generalization capability and significant value in improving remote interaction experience.However,existing remote desktop solutions provide limited support for the redirection of specialized input devices such as game controllers.In general,they lack targeted optimization for transmission latency and suffer from input distortion when handling high-polling-rate controllers,making them difficult to apply in highly real-time remote interactive scenarios.To address these issues,this paper proposes a game controller redirection scheme based on existing remote desktop systems.Firstly,a differentiated multi-channel transmission mechanism is constructed to reduce the end-to-end latency of controller data.Secondly,a high-precision timestamp-based event replay mechanism is introduced to solve the input distortion pro-blem caused by remote transmission of high-polling-rate controller events.Thirdly,a joystick trajectory completion algorithm based on Bézier curves is proposed to eliminate operational discontinuity caused by the dead zone.The proposed scheme provides a highly real-time,low-latency,and locally consistent game controller experience for remote desktop scenarios.Experimental results demonstrate that the proposed game controller redirection scheme can achieve end-to-end latency within 30 ms under favorable network conditions,and can still maintain low and stable interaction latency under network jitter,thus meeting the requirements of various scenarios such as remote gaming.

Key words: Remote desktop, Gamepad redirection, Low-latency interaction, Multi-channel transmission, Gamepad event replay, Path completion

中图分类号: 

  • TP311
[1] CAI W,SHEA R,HUANG C Y,et al.A Survey on Cloud Ga-ming:Future of Computer Games[J].IEEE Access,2016,4:7605-7620.
[2] LIU S,CLAYPOOL M,KUWAHARA A,et al.Lower isBet-ter?The Effects of Local Latencies on Competitive First-Person Shooter Game Players[C]//Proceedings of the CHI Conference on Human Factors in Computing Systems.2021:1-12.
[3] LIU S,CLAYPOOL M,KUWAHARA A,et al.The Effects ofNetwork Latency on Competitive First-Person Shooter Game Players[C]//2021 13th International Conference on Quality ofMultimedia Experience(QoMEX).IEEE,2021:151-156.
[4] WIBOWO A,DUONG T N B.CloudNPlay:Resourceoptimization for a cloud-native gaming system [C]//2021 IEEE 30th International Conference on Enabling Technologies:Infrastructure for Collaborative Enterprises(WETICE).2021:33-38.
[5] HIROFUCHI T,KAWAI E,FUJIKAWA K,et al.USB/IP:Atransparent device sharing technology over IP network[J].IPSJ Digital Courier,2005,1:394-406.
[6] ZHOU Y M,GUO H H.A research of USB device redirection mechanism over IP network in desktop cloud system[C]//2012 National Conference on Information Technology and Computer Science.2012:196-199.
[7] CHENG L.Research on optimization of USB redirection channel transmission mechanism based on SPICE protocol[J].Computer Science and Application,2020,10:1166.
[8] ZHU Y Q,TANG X.Analysis and research on remote desktop transmission protocol based on VNC [J].Computer System Applications,2016(11):284287.
[9] ANSYAR H D,WAHID A,LAMADA M,et al.Implementationof Cloud gaming using the Chrome Remote Desktop Method[C]//2023 IEEE 8th International Conference on Recent Advances and Innovations in Engineering(ICRAIE).2023:1-6.
[10] PROTOCLO R D.Remote Desktop Protocol[EB/OL].https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr.
[11] Microsoft.RdpGamepad:Remote Desktop Plugin for Xbox Game-pads[EB/OL].https://github.com/microsoft/RdpGamepad.
[12] MCANLIS C,LUBBERS P,JONES B,et al.Playing Around with the Gamepad API:Andrzej Mazur,HTML5 Games Developer,Founder,Enclave Games[M]//HTML5 Game Development Insights.Springer,2014:163-175.
[13] WEINRANK F,BECKE M,FLOHR J,et al.WebRTC datachannels[J].IEEE Communications Standards Magazine,2017,1(2):28-35.
[14] LOVE R.Linux kernel development[M].Pearson Education,2010.
[15] MAUERER W.Professional Linux kernel architecture[M].John Wiley & Sons,2010.
[16] THORPE A,MA M,OIKONOMOU A.History and alternative game input methods[C]//2011 16th International Conference on Computer Games(CGAMES).2011:76-93.
[17] NEAGOE T,CRISTEA V,BANICA L.NTP versus PTP incomputer networks clock synchronization[C]//2006 IEEE International Symposium on Industrial Electronics.2006:317-362.
[18] FARIN G.Curves and surfaces for computer-aided geometric design:a practical guide[M].Elsevier,2014.
[19] ZHANG J.C-Bézier curves and surfaces[J].Graphical Models and Image Processing,1999,61(1):2-15.
[20] HAN X A,MA Y,HUANG X.A novel generalization of Bézier curve and surface[J].Journal of Computational and Applied Mathematics,2008,217(1):180-193.
[21] FARIN G E.Curves and surfaces for CAGD:apractical guide[M].Morgan Kaufmann,2002.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!