mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2024-11-27 20:40:48 +01:00
update readme v0.9
This commit is contained in:
parent
6d36e5ff84
commit
effb639e86
@ -56,7 +56,7 @@ public class WindowEncoder : NetworkBehaviour
|
||||
void SetSetting(uNvEncoder.EncoderDesc _setting, int resolutionDivider)
|
||||
{
|
||||
var JObj= JObject.FromObject(_setting);
|
||||
JObj.Remove("width"); JObj.Remove("height");
|
||||
JObj.Remove("width"); JObj.Remove("height"); JObj.Remove("format");
|
||||
JObj["ResolutionDivider"] = resolutionDivider;
|
||||
JsonConfig.SetJObject("EncoderSetting", JObj);
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1cfe2a69ab768714189049973670160e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1 +0,0 @@
|
||||
{"Keys":["com.unity.services.core.cloud-environment","com.unity.services.qos.version","com.unity.services.lobby.version","com.unity.services.core.version","com.unity.services.authentication.version","com.unity.services.relay.version"],"Values":[{"m_Value":"production","m_IsReadOnly":true},{"m_Value":"1.0.1","m_IsReadOnly":true},{"m_Value":"1.0.1","m_IsReadOnly":true},{"m_Value":"1.4.2","m_IsReadOnly":true},{"m_Value":"2.1.1","m_IsReadOnly":true},{"m_Value":"1.0.3","m_IsReadOnly":true}]}
|
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4732ca33743d3c94dba2dac439f9b344
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -5,9 +5,9 @@ EditorBuildSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Scenes:
|
||||
- enabled: 0
|
||||
path:
|
||||
guid: 00000000000000000000000000000000
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/MainScene.unity
|
||||
guid: e9b3d4fffee91174bbf7c09ad6cc9415
|
||||
m_configObjects:
|
||||
Unity.XR.Oculus.Settings: {fileID: 11400000, guid: 882a733244498a8469ee2565acf52f50,
|
||||
type: 2}
|
||||
|
@ -188,8 +188,7 @@ PlayerSettings:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: -6018045015233401694, guid: 3999ab811e936714280a476b3a032d86, type: 2}
|
||||
- {fileID: 6536100391545742739, guid: 55d1ec7a4296de343b6d3bb6f9a19731, type: 2}
|
||||
- {fileID: 0}
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
|
15
README.md
15
README.md
@ -94,6 +94,21 @@ Some configs in config.json are only the index of the dropdown.
|
||||
|
||||
You can use the pointer to point the third-person camera and grab it to the position where you want to be.
|
||||
|
||||
## Multiplayer Configuration
|
||||
---
|
||||
All the settings related to multiplayer are inside config.json.
|
||||
|
||||
- **HostIP:** IP address of the host to be connected by the client, supports IPV4/6.IPV6 format: **HostIP: "[fe80::1145:1400:1919:8100]"**
|
||||
- **HostPort:** the port of the host, also the port to which the client will connect. The protocol is UDP.
|
||||
- If you need to forward the port on top of the router, you only need to forward one of the above UDP ports.
|
||||
|
||||
**EncoderSetting:**
|
||||
- **bitRate:** bit rate (unit: bit; default: 196608)
|
||||
- **frameRate:** frame rate (in FPS; default: 24)
|
||||
- **maxFrameSize:** maximum single frame size (unit: bit; default: 8192)
|
||||
- **ResolutionDivider:** Reduce the encoding resolution, i.e. the input window screen resolution. Does not affect the local display. Inputting 2 will divide the window's width and height by 2. (default: 2)
|
||||
|
||||
**Too high bit rate and resolution will cause all kinds of lag and issues, it is recommended to divide the resolution by 3 and adjust the frame rate to less than 20 fps, which can solve the problem of compression mosaic and encoding lag to some extent.**
|
||||
|
||||
## ToDo
|
||||
---
|
||||
|
17
README_zh.md
17
README_zh.md
@ -91,6 +91,23 @@ config.json 中的一些配置的参数只是下拉列表选项的顺序。
|
||||
你可以使用控制器指针指向第三人称相机,并用手柄的抓取键将其放到你想要的位置。
|
||||
|
||||
|
||||
## 多人游玩设置
|
||||
---
|
||||
|
||||
- 所有的多人游玩相关的设置都在config.json里面。
|
||||
- **HostIP:** 客户端要连接的主机IP地址,支持IPV4/6。IPV6格式: **HostIP: "[fe80::1145:1400:1919:8100]"**
|
||||
- **HostPort:** 主机的端口,也是客户端要连接的端口。协议为UDP。
|
||||
- 如果你需要在路由器上面转发端口,只需要转发上述的一个UDP端口即可。
|
||||
|
||||
EncoderSettin(编码设置):
|
||||
|
||||
- **bitRate:** 比特率(单位:bit;默认:196608)
|
||||
- **frameRate:** 帧率(单位:FPS;默认:24)
|
||||
- **maxFrameSize:** 最大单帧大小(单位:bit;默认:8192)
|
||||
- **ResolutionDivider:** 降低编码分辨率,也就是输入的窗口画面分辨。不影响本地端显示。输入2会将窗口的长宽分别除以2。(默认:2)
|
||||
|
||||
**过高的码率和分辨率会造成各种的问题和卡顿,推荐将分辨率除以3帧率调整为20帧以下,可以一定程度上解决压缩马赛克,以及编码卡顿问题。**
|
||||
|
||||
## ToDo
|
||||
---
|
||||
- √ 添加用户可调整的设置(控制器位置等)
|
||||
|
Loading…
Reference in New Issue
Block a user