This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口(API)参考
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

在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
检查默认设置#

  1. Launch SteamVR.启动SteamVR。

  2. Enable Advanced Settings.启用Advanced Settings

  3. Open SteamVR Settings and make sure that no scaling is applied to resolution:打开SteamVR设置,确保分辨率未进行任何缩放调整:

    Settings -> General -> Render Resolution -> Resolution Per Eye = 100%

  4. Run the UNIGINE-based application in VR.运行基于UNIGINE的VR应用程序。

  5. 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 部分中:
  1. Close the SteamVR application.关闭SteamVR应用程序。
  2. Open the file steamvr.vrsettings. The relative path to the file is: ~/.steam/steam/config/steamvr.vrsettings.打开 steamvr.vrsettings 文件。文件的相对路径为:~/.steam/steam/config/steamvr.vrsettings
  3. In this file find the steamvr section and add the following:在此文件中找到steamvr部分并添加以下内容:

    源代码 (XML)
    "steamvr" : {
    		...
    		"enableLinuxVulkanAsync" : true,
    		...
    	}
  4. Save steamvr.vrsettings.保存 steamvr.vrsettings 文件。
2、在基于UNIGINE的应用程序部分:
  1. Launch the SteamVR application.启动SteamVR应用程序。
  2. Enable Advanced Settings.启用 Advanced Settings
  3. Run the UNIGINE-based application in VR.在VR中运行基于UNIGINE的应用程序。
  4. Open the application settings (Settings -> Video -> PER-APPLICATION VIDEO SETTINGS).打开应用程序设置(Settings -> Video -> PER-APPLICATION VIDEO SETTINGS)。
  5. Change any application setting. For example, you can move the Custom Resolution Multiplier toggle. This action automatically creates the application section in steamvr.vrsettings.更改任何应用程序设置。例如,您可以移动 Custom Resolution Multiplier 滑块。此操作会自动在 steamvr.vrsettings 中创建应用程序部分。

    注意
    After restarting the UNIGINE application remember to reset the modified setting.重启UNIGINE应用程序后,请记得重置修改过的设置。
  6. Close the SteamVR application.关闭SteamVR应用程序。
  7. Open the file steamvr.vrsettings.打开 steamvr.vrsettings 文件。
  8. In this file find the section with the name of your application and add the following line:在此文件中找到以您应用程序命名的部分并添加以下行:

    源代码 (XML)
    "system.generated.APP_NAME.exe" : {
    		...
    		"enableLinuxVulkanAsync" : true,
    		...
    	}
  9. Save steamvr.vrsettings.保存 steamvr.vrsettings 文件。

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
注意
Unfortunately, on some Linux distributions (such as Astra 1.8), there's a bug in SteamVR where it doesn't log the number of reprojected frames, even though the Advanced Frame Timing overlay clearly shows that reprojection is working.需要注意的是,在某些Linux发行版(如Astra 1.8)中,SteamVR存在一个bug:即使Advanced Frame Timing叠加层明确显示重投影正在工作,系统也不会记录重投影帧数。

本页面上的信息适用于 UNIGINE 2.20 SDK.

最新更新: 2025-05-19
Build: ()