在Linux上配置SteamVR以获得最佳体验
本文包含Linux上SteamVR设置的建议,以提高基于UNIGINE的VR应用程序的性能。
检查默认设置#
启用异步重投影#
异步重投影功能可有效稳定帧率。即使应用程序引擎仅报告45 FPS,通过重投影技术,头显设备仍能显示90 FPS。但若应用程序帧率降至30 FPS,头显将显示60 FPS。
在Linux系统中,即使已禁用 Legacy Reprojection 模式(Use Legacy Reprojection Mode = Off),异步重投影仍可能无法生效。要启用此功能,需修改 steamvr.vrsettings 配置文件,在以下两个配置块中添加参数 "enableLinuxVulkanAsync" : true:
1、在 steamvr 部分中: |
---|
|
2、在基于UNIGINE的应用程序部分: |
|
监测重投影状态#
您可以通过SteamVR内置的帧计时工具验证重投影是否激活:Settings -> Developer -> Advanced Frame Timing。此时将显示帧计时图表叠加层。
观察GPU图表(底部区域):若出现红色尖峰或红线,表示重投影正在工作::
若无红色标记,则表示重投影未工作::
您还可以检查~/.steam/steam/logs/vrcompositor.txt文件,正常内容应类似如下:
输出
Tue May 13 2025 12:12:52.530 [Info] - Lost pipe connection from vr219_x64 (16216)
Tue May 13 2025 12:12:52.530 [Info] - ######################################################################
Tue May 13 2025 12:12:52.530 [Info] - Cumulative stats for pid: 16216
Tue May 13 2025 12:12:52.530 [Info] - Total..................241834 presents. 258 dropped. 57287 reprojected
Tue May 13 2025 12:12:52.530 [Info] - Startup................ 73 presents. 0 dropped. 45 reprojected
Tue May 13 2025 12:12:52.530 [Info] - Loading... 0 total.... 0 presents. 0 dropped. 0 reprojected
Tue May 13 2025 12:12:52.530 [Info] - Timed out. 0 total.... 26259 presents. 30 dropped. 3811 reprojected
Tue May 13 2025 12:12:52.530 [Info] - Compositor Time........CPU: 0.193ms / GPU: 0.560ms
Tue May 13 2025 12:12:52.530 [Info] - Game Info..............FPS Average Target 90 ApplicationTime CPU: 6.475ms / GPU: 10.412ms
注意
需要注意的是,在某些Linux发行版(如Astra 1.8)中,SteamVR存在一个bug:即使Advanced Frame Timing叠加层明确显示重投影正在工作,系统也不会记录重投影帧数。
本页面上的信息适用于 UNIGINE 2.20 SDK.
最新更新:
2025-05-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)