【翻譯】CSGO GOTV直播卡頓的成因和優化

reddit原文鏈接

——————

經過原作者幾個月時間研究了GOTV的網路協議,他發現其中有很多弊病

主要原因是GOTV demo直播的快照(snapshots)混合了delta package.用非術語說就是有的直播信息被壓縮後傳輸給你了。

當這些delta壓縮後的直播信息,由於網路問題(丟包)而丟失後,直播畫面就變得充滿了各種錯誤和卡頓。

歸根結底,GOTV壓縮了直播快照,來降低它直播的CPU和帶寬使用率(譯者註:也就是壓縮本意是為了優化,但是當你網路丟包後丟失的東西也被更多了,所以成了負優化)

因此,為了強制遊戲播放未壓縮的直播,我們需要在控制台輸入

tv_deltacache 0

對於賽事直播方,如果想讓GOTV的演示沒有壓縮,有更高的tickrate,使GOTV的直播信息精確得和pov一樣,以128tick錄製,雖然會使demo文件變大(但對於現在的網路水平和存儲水平不是問題),但可以給觀眾獲得與伺服器完全一致的直播體驗。

這是原作者提供的改良版gotv.cfg,幫助賽事直播方用它能夠使遊戲直播質量最優。一旦gotv錄製完畢,它與伺服器信息是1:1

這個參數是私人gotv客戶端,沒有開放任何觀眾,用於私密錄製沒有信息丟失的最佳質量gotv demo

// GOTV Config// 2017-06-10tv_allow_camera_man 0 //Auto director allows spectators to become camera mantv_allow_static_shots 1 //Auto director uses fixed level cameras for shotstv_autorecord 1 //Automatically records all games as GOTV demos.tv_chatgroupsize 0 //Set the default chat group sizetv_chattimelimit 8 //Limits spectators to chat only every n secondstv_debug 0 //GOTV debug info.tv_delay 0 //GOTV broadcast delay in secondstv_delaymapchange 0 //Delays map change until broadcast is completetv_deltacache 0 //Enable delta entity bit stream cachetv_dispatchmode 1 //Dispatch clients to relay proxies: 0=never, 1=if appropriate, 2=alwaystv_enable 1 //Activates GOTV on server.tv_maxclients 1 //Maximum client number on GOTV server.tv_maxrate 0 //Max GOTV spectator bandwidth rate allowed, 0 == unlimitedtv_name "GOTV" //GOTV host nametv_nochat 1 //Don"t receive chat messages from other GOTV spectatorstv_overridemaster 0 //Overrides the GOTV master root address.tv_port 27020 //Host SourceTV porttv_relaypassword "any" //GOTV password for relay proxiestv_relayvoice 0 //Relay voice data: 0=off, 1=ontv_snapshotrate 128 //Snapshots broadcasted per secondtv_timeout 15 //GOTV connection timeout in seconds.tv_title "GOTV" //Set title for GOTV spectator UItv_transmitall 1 //Transmit all entities (not only director view)sv_hibernate_postgame_delay 180say "> GOTV Config loaded <"

對於普通玩家,上述這些命令與你無關,這是給連接到比賽伺服器的gotv客戶端用的。

推薦閱讀:

【免費周末來襲、NGA建立二隊、Maps閉關、WNV韓國隊員登頂國服、C9二代目外星人周賽奪冠】守望周新聞1106
網遊電競化運營的一些大實話
電競有沒有「假球」?

TAG:反恐精英:全球攻势CS:GO | 电竞赛事 |