Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Windows: Progressive FPS degradation in Persona 5 Royal with virtual Xbox Series controller; disconnecting controller restores performance

未关闭
#194 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
cpp
领域
desktop-dev

调研方向

The payload names no source files or tests, so start by reproducing the slowdown with the Windows libvirtualhid driver and the Sunshine virtual Xbox Series controller, then compare controller create and destroy paths against the reported recovery on reconnect. Sunshine logs showing the controller being recreated are the main clue. Done would mean isolating whether the fault lies in libvirtualhid or its Windows, Steam Input or game interaction; this needs maintainer input and is not a first-timer task.

由索引模型根据 Issue 内容生成。

描述

Describe the Bug

While streaming Persona 5 Royal through Sunshine to Moonlight on an Xbox Series X, the game's actual rendering FPS gradually deteriorates when using a controller through libvirtualhid.

Disconnecting the controller immediately restores approximately 120 FPS. Performance remains restored after reconnecting it, without restarting the game or Sunshine. I reproduced this behavior more than once.

This affects the Steam FPS counter and the game on the physical PC monitor, so it is a host-side rendering slowdown rather than only dropped streaming frames.

Environment
  • OS: Windows 10 Pro, build 19045
  • libvirtualhid Windows driver: 2026.914.1218.10
  • Sunshine: 2026.914.233613
  • Sunshine gamepad driver setting: virtualhid
  • Virtual gamepad: Xbox Series, automatically selected
  • CPU: AMD Ryzen 5 3600
  • GPU: NVIDIA RTX 3070 Ti, 8 GB VRAM
  • NVIDIA driver: 581.29
  • RAM: 32 GB
  • Client: Moonlight UWP on Xbox Series X
  • Game: Persona 5 Royal, Steam version
  • Streaming encoder: H.264 NVENC, P1, approximately 60 FPS
Steps to reproduce
  1. Start Sunshine with the Virtual HID backend and Xbox Series gamepad emulation.
  2. Connect from Moonlight on an Xbox Series X.
  3. Launch Persona 5 Royal and play using the Xbox controller.
  4. Continue playing for approximately 30–60 minutes.
  5. Observe progressively declining FPS in Steam's FPS counter and on the PC monitor.
  6. Disconnect the controller while leaving the game, Sunshine, and Moonlight running.
  7. Reconnect the controller.
Actual behavior
  • Playing locally without Sunshine gives stable performance around 120 FPS.
  • Streaming sessions initially run around 80–100 FPS, then gradually deteriorate.
  • One session reached approximately 27 FPS after around 30 minutes.
  • Another reached approximately 16 FPS after around an hour.
  • More intensive controller use, particularly holding buttons, appears to accelerate the degradation. This is an observation rather than a measured input-rate comparison.
  • Disconnecting the controller immediately restores approximately 120 FPS.
  • FPS remains restored after reconnecting the controller.
  • Sunshine logs show the virtual Xbox Series controller being created again around the recovery. The game process remains the same.
Diagnostics during the slowdown
  • Persona's main thread was almost fully occupying one logical CPU, with most of that time spent in kernel mode.
  • GPU utilization was only approximately 14–17%.
  • GPU temperature was approximately 45°C, with no thermal throttling reported.
  • GPU memory usage was approximately 2.2–2.3 GB out of 8 GB.
  • Approximately 20 GB of system RAM remained available.
  • After controller reconnection, the game's kernel CPU usage fell substantially and GPU utilization increased to approximately 54%, alongside the FPS recovery.
Other tests
  • Disabling Sunshine's "Present OpenGL/Vulkan on top of DXGI" option did not resolve the issue.
  • Stopping the Nahimic audio service while the slowdown was occurring did not restore performance.
  • In an earlier occurrence, disconnecting the Moonlight client alone did not restore FPS, but fully exiting Sunshine did.

The controller disconnect/reconnect test is currently the most reliable way to clear the slowdown. I suspect an issue in the virtual controller/input path, but have not yet isolated whether the cause is libvirtualhid itself or its interaction with Windows, Steam Input, or the game.

Expected Behavior

Controller input, including sustained button presses, should not cause progressively increasing host-side CPU overhead or declining game FPS.

Performance should remain stable throughout long streaming sessions, without requiring the controller to be disconnected and reconnected to restore normal FPS.

Additional Context

When using vigembus driver all works fine and FPS is not dropping, so it's libvirtualhid driver issue in my honest opinion.

主要语言
C++
星标
93
派生
25
平均合并
15 小时 16 分钟
30 天内合并 PR
30

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

LizardByte/libvirtualhid 的其他 Issue

查看 LizardByte/libvirtualhid 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。