在Linux上配置SteamVR以获得最佳体验
This article contains the recommendations for SteamVR settings on Linux for a better performance of UNIGINE-based VR applications.本文包含Linux上SteamVR设置的建议,以提高基于UNIGINE的VR应用程序的性能。
Checking Default Settings检查默认设置#
-
Launch SteamVR.启动SteamVR。
-
Enable Advanced Settings.启用Advanced Settings。
-
Open SteamVR Settings and make sure that no scaling is applied to resolution:打开SteamVR设置,确保分辨率未进行任何缩放调整:
Settings -> General -> Render Resolution -> Resolution Per Eye = 100%
-
Run the UNIGINE-based application in VR.运行基于UNIGINE的VR应用程序。
-
Open the application settings in SteamVR and make sure that no scaling is applied to resolution and Legacy Reprojection is disabled:在SteamVR中打开该应用程序的设置,确保分辨率未进行缩放调整,并且Legacy Reprojection被禁用:
Settings -> Video -> PER-APPLICATION VIDEO SETTINGS
Enabling Asynchronous Reprojection启用异步重投影#
Async reprojection helps stabilize the frame rate. Even if the engine reports only 45 FPS in the application, the headset will still display 90 FPS thanks to reprojection. However, if the application drops to 30 FPS, the headset will display 60 FPS.异步重投影功能可有效稳定帧率。即使应用程序引擎仅报告45 FPS,通过重投影技术,头显设备仍能显示90 FPS。但若应用程序帧率降至30 FPS,头显将显示60 FPS。
Linux may fail to apply asynchronous reprojection even if the Legacy Reprojection Mode is disabled (Use Legacy Reprojection Mode = Off). To enable asynchronous reprojection, modify the file steamvr.vrsettings by adding "enableLinuxVulkanAsync" : true in two blocks:在Linux系统中,即使已禁用 Legacy Reprojection 模式(Use Legacy Reprojection Mode = Off),异步重投影仍可能无法生效。要启用此功能,需修改 steamvr.vrsettings 配置文件,在以下两个配置块中添加参数 "enableLinuxVulkanAsync" : true:
1、在 steamvr 部分中: |
---|
|
2、在基于UNIGINE的应用程序部分: |
|
Monitor Reprojection Status监测重投影状态#
You can verify that reprojection is active by using SteamVR's built-in frame timing tools: Settings -> Developer -> Advanced Frame Timing. A graph overlay will appear showing frame timings.您可以通过SteamVR内置的帧计时工具验证重投影是否激活:Settings -> Developer -> Advanced Frame Timing。此时将显示帧计时图表叠加层。
Look at the GPU graph (bottom part): if you see red spikes or a red line, that indicates reprojection is active:观察GPU图表(底部区域):若出现红色尖峰或红线,表示重投影正在工作::
No red indicators mean that reprojection is not working:若无红色标记,则表示重投影未工作::
You can also check the file ~/.steam/steam/logs/vrcompositor.txt for the content that should look approximately like this:您还可以检查~/.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
本页面上的信息适用于 UNIGINE 2.20 SDK.