? ,,

新锐科创官网-专业室内外高精度人员定位系统厂家及服务商

聯(lián)系我們

給我們留言

聯(lián)系我們

地址:福建省晉江市青陽(yáng)街道洪山路國(guó)際工業(yè)設(shè)計(jì)園納金網(wǎng)

郵箱:info@narkii.com

電話:0595-82682267

(周一到周五, 周六周日休息)

當(dāng)前位置:主頁(yè) > 3D教程 > 圖文教程

UE4 Actor Replication(同步)的性能問題

來源: 52vr | 責(zé)任編輯:傳說的落葉 | 發(fā)布時(shí)間: 2019-06-06 08:26 | 瀏覽量:

[UE4]Actor Replication(同步)的性能問題

 

看了下相關(guān)文檔,UE自帶的Replication機(jī)制效率還是很低的,UE為了提供通用的同步功能,這個(gè)Replication實(shí)現(xiàn)的非常簡(jiǎn)單粗暴,如果是承載客戶端鏈接很多的項(xiàng)目,這個(gè)Replication貌似不可取,最好還是根據(jù)自己的項(xiàng)目需求自己實(shí)現(xiàn)一套同步機(jī)制。
 

關(guān)掉Replication:
AActor::SetReplicates( false )

如果實(shí)在要用Replication,可以降低更新頻率來提升效率:
AActor::NetUpdateFrequency()

 

2016-03-29補(bǔ)充:

v4.4開始,shipping編譯出來的版本,會(huì)自動(dòng)禁用Replication,所以如果是對(duì)通信性能較高的項(xiàng)目,Replication不要用,只能作為測(cè)試工具使用。

Dedicated server connection

https://answers.unrealengine.com/questions/70015/dedicated-server-connection.html

 

官方解釋:

Performance and Bandwidth Tips

https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Actors/ReplicationPerformance/

 

 

When gathering actors for replication, the server will check a few things like relevancy, update frequency, dormancy, etc. You can tweak any of these checks to affect performance. When thinking about making this process as efficient as possible, it's best to prioritize in this order:

  • Turning off replication (AActor::SetReplicates( false ))

    • When is actor is not replicating, it's not on the list in the first place, so this is the biggest win, to make sure actors that don't need to replicate are marked as such.

  • Lower NetUpdateFrequency value

    • The less an actor updates, the less time it takes to update. It's best to make this number as low as possible. This number represents how often per second this actor will replicate to clients.

  • Dormancy

  • Relevancy

  • NetClientTicksPerSecond

Don't mark properties to replicate if they aren't absolutely necessary. It's best to try and derive state from existing replicated properties when possible.

Try to take advantage of the quantization functionality that already exists. e.g. FVector_NetQuantize. These will greatly reduce the size needed to replicate this state over to clients, and if used properly, shouldn't cause any noticeable artifacts.

FNames are not generally compressed, so when you are using them as parameters to RPCs, keep in mind that they will generally send the string each call. This can be a lot of overhead.

 

另一篇關(guān)于UE的Replication解釋:
Everything you ever wanted to know about replication (but were afraid to ask)

https://wiki.beyondunreal.com/Everything_you_ever_wanted_to_know_about_replication_(but_were_afraid_to_ask)#Thi


相關(guān)文章
網(wǎng)友評(píng)論

您需要登錄后才可以發(fā)帖 登錄 | 立即注冊(cè)

關(guān)閉

全部評(píng)論:0條

推薦
熱門
主站蜘蛛池模板: 欧美特黄一级aa毛片 | 日韩人妻无码精品无码中文字幕 | 强奷漂亮人妻系列老师 | 中文字幕无码精品亚洲资源网久久 | 久久久国产精品无码免费专区 | 国产一区二区三区不卡在线观看 | 久久毛片基地 | 国内精品伊人久久久影院 | 国产高清国内精品福利99久久 | 成人精品一区二区久久 | 久久亚洲国产成人亚 | 亚州av综合色区无码一区 | 青青草视频在线观看 | 一 级 黄 色 大片 | 国产精品成人一区二区三区 | 国产成人99精品免费观看 | 欧美精品国产第一区二区 | 亚洲精品字幕一区二区三区 | 国产91在线精品福利 | 中文字幕在线观看一区二区三区 | 久久日本精品一区二区三区 | siro系绝美精品系列 | 精品久久亚洲中文无码 | 97人人模人人爽人人喊网 | 少妇伦子伦精品无码styles | 日本亚洲国产精品久久 | 香蕉人人超人人超碰超国产 | 国产精品视频一区麻豆 | 亚洲不卡一区二区三区在线 | 欧美性色欧美a在线播放 | 四虎精品永久在线 | 99久久精品一区二区三区 | 亚洲 另类色区 欧美日韩 | 国产福利视频在线观看 | 国产精品不卡在线 | 欧美亚洲综合成人a∨在线 欧美亚洲综合另类成人 | 中文一级黄色片 | 欧美高清视频www夜色资源网 | 成人欧美精品大91在线 | 曰批免费视频播放免费 | 一区二区三区四区欧美 |