鋼鐵雄心4開發(fā)日志 | 9/13 技術(shù)相關(guān)內(nèi)容

牧游社 牧有漢化翻譯
Developer Diary | Tech
MatRopert, HoI4 Tech Lead
Bonjour friends, it's your favourite Tech Lead again!
朋友們大家吼,大家最喜歡的技術(shù)領(lǐng)隊(duì)又來辣!
Last year already I wrote to you in the final weeks leading to the release of the Barbarossa patch, and we draw close to the go-live of the Avalanche patch, here I appear again.
去年,在巴巴羅薩Barbarossa補(bǔ)丁發(fā)布前的最后幾周,我已經(jīng)給你們寫過一篇日志。在雪崩Avalanche補(bǔ)丁接近發(fā)布的當(dāng)今,我又再次出現(xiàn)辣。
Old Platforms Retirement Plan
舊平臺(tái)退役計(jì)劃
Like the future, technology is always in motion. As new platforms arise, olders need to be taken behind the barn and put down.
就像未來一樣,科技總是在變化。隨著新平臺(tái)的出現(xiàn),舊的平臺(tái)需要退居幕后并被放棄。
Don't worry, we're not talking about Windows 7 (yet ). Despite the release of Windows 11, we have not elected to make a push to Windows 10 since Microsoft's support for new tech on older releases is still fairly good.
別擔(dān)心,我們不是在談?wù)揥indows 7(至少目前不是)。盡管Windows 11已經(jīng)發(fā)布,我們還沒有選擇向Windows 10推進(jìn),因?yàn)槲④浀呐f版本對(duì)新技術(shù)的支持仍然相當(dāng)好。
The same cannot be said for Mac and Linux, sadly. And so, starting the new 1.12.0 release, the minimum OS versions will be macOS 10.14 (Mojave) and Ubuntu 20.04 LTS (Focal Fossa). You will still be able to play older HoI versions on older operating systems by rolling back to previous branches, but Avalanche will refuse to start.
遺憾的是,對(duì)于Mac和Linux就不是這樣了。因此,從我們最新發(fā)布的1.12.0版本號(hào)開始,最低的操作系統(tǒng)版本將是macOS 10.14(Mojave)和Ubuntu 20.04 LTS(Focal Fossa)。你仍然能夠回滾到舊的發(fā)布分支,以便在舊的操作系統(tǒng)上玩舊版本的HOI,但對(duì)于雪崩Avalanche補(bǔ)丁來說,游戲?qū)⒕芙^啟動(dòng)。
Those updates are done in order to introduce new tech to our games (not just HoI) and ensure that all can be built on the same infrastructure within the studio.
這些更新是為了將新技術(shù)引入我們的游戲(不僅僅是HOI),并確保所有的游戲都能建立在與工作室內(nèi)部相同的基礎(chǔ)設(shè)施上。
New Defaults
新的默認(rèn)設(shè)置
Last year we introduced the option to run the game with DirectX11 rather than the venerable DirectX9. After a long period of observation and very few issues observed, we have decided to make it the default.
去年,我們引入了用DirectX11而不是古老的DirectX9運(yùn)行游戲的選項(xiàng)。經(jīng)過長(zhǎng)時(shí)間的觀察,我們觀察到的問題極少,因此我們決定將其作為默認(rèn)選項(xiàng)。
The first time you start the Paradox Launcher on Avalanche, the game will perform a one-time upgrade of your settings from DirectX9 to DirectX11. New installations will also default to DirectX11.
當(dāng)你第一次在雪崩Avalanche版本的基礎(chǔ)上啟動(dòng)Paradox Launcher時(shí),游戲?qū)?huì)對(duì)你的設(shè)定進(jìn)行一次性升級(jí),從選擇DirectX9升級(jí)到選擇DirectX11。新安裝的游戲也將默認(rèn)選DirectX11。
If you notice any issue due to this change, first, please make a bug report, and then simply go to the settings page and set the renderer back to DirectX9.
如果你注意到由于這一改動(dòng)而產(chǎn)生的任何問題,首先,請(qǐng)向我們報(bào)告錯(cuò)誤,然后只需到設(shè)置頁面將渲染器設(shè)置調(diào)回DirectX9。

Visually the game should look absolutely the same, but internally the tools that come with DirectX11 have helped us find a few sneaky graphical bugs that will be fixed in Avalanche, such as weird white squares appearing on the side of some tank models.
僅從視覺上看,游戲應(yīng)該是完全一樣的,但在內(nèi)部,DirectX11帶來的工具幫助我們發(fā)現(xiàn)了一些細(xì)枝末節(jié)的圖形錯(cuò)誤,這些錯(cuò)誤將在雪崩Avalanche中得到修復(fù),例如一些坦克模型的側(cè)面出現(xiàn)了奇怪的白色方塊。
Performance Improvements
性能改進(jìn)
This is I bet the bit most of you were waiting for, the usual question of "will the new patch make the game run faster than previous versions?". And I'm happy to say the answer is yes.
我敢說這是你們中的大多數(shù)人都在等待的部分,也就是這個(gè)日經(jīng)問題:“新的補(bǔ)丁會(huì)使游戲運(yùn)行得比以前的版本快嗎?”。就此,我很高興地說,答案是肯定的。
The biggest improvement has been made to the map icons rendering (unit counters, factories, supply hubs, you name it). The number of icons potentially displayed on the map had grown a lot since HoI's release 6 years ago and the historical algorithm wasn't cutting it anymore.
最大的改進(jìn)是對(duì)地圖圖標(biāo)的渲染(單位計(jì)數(shù)器、工廠、補(bǔ)給中心等等,凡是你能想到的)。自從6年前HOI初版發(fā)布以來,地圖上可能顯示的圖標(biāo)數(shù)量增加了很多,歷史算法已經(jīng)不能滿足需要了。
For example, here are what the FPS and frame time look like on Avalanche on my work desktop (i7700, NVIDIA GTX 1060, vsync off and 150 fps cap):
例如,以下是我的工作環(huán)境(i7700,NVIDIA GTX 1060,vsync關(guān)閉,150 fps上限)里雪崩Avalanche版本的FPS和幀渲染時(shí)間:

Avalanche default zoom雪崩默認(rèn)縮放
And Full zoomed out:
縮放到最?。?/p>

Avalanche Zoomed out雪崩縮小
Finally zoomed back in, but with Speed 5:
最后縮放回來,但開到5速:

Avalanche at Speed 55速的雪崩
(If you forgot last year's dev diary, you can pop up the ingame profiler by typing imgui show profiler in the debug console).
(如果你忘記了去年的開發(fā)日志,你可以在控制臺(tái)中輸入imgui show profiler來彈出游戲內(nèi)置分析器。)
Contrast those numbers with the ones from the current live build (Barbarossa 1.11.13):
將這些數(shù)字與當(dāng)前版本(Barbarossa 1.11.13)中的數(shù)字進(jìn)行對(duì)比:

Barbarossa default zoom巴巴羅薩默認(rèn)縮放
Note that Barbarossa denotes rendering performance in “render time” rather than “frame time”, which is only the GPU part, while Avalanche counts both CPU and GPU rendering time, so the numbers look different.
請(qǐng)注意,巴巴羅薩Barbarossa用“渲染時(shí)間”而不是“幀渲染時(shí)間”來表示渲染性能,前者只計(jì)算GPU部分,而雪崩Avalanche同時(shí)計(jì)算CPU和GPU的渲染時(shí)間,所以數(shù)字看起來不同。

Barbarossa zoomed out巴巴羅薩縮小

Barbarossa at speed 55速的巴巴羅薩
Since PDS games from HoI's generation tie up rendering and game simulation, this will translate in faster tick speed (on top of a few smaller performance optimizations we added to the simulation itself). Although, to be clear, faster rendering does not translate perfectly in faster game speed. It mostly means a more fluid experience when playing (especially unpaused in Speed 4-5), and then some improvement to the speed of the game simulation.
由于HOI這一代的PDS游戲?qū)秩竞陀螒蚰M結(jié)合起來,這些改動(dòng)將轉(zhuǎn)化為更快的游戲運(yùn)行速度(這種改善超越我們?yōu)橛螒蚰M本身添加的一些小的性能優(yōu)化)。但是這里要明確的是,更快的渲染并不能完美地轉(zhuǎn)化為更快的游戲速度,它主要意味著在游玩時(shí)有更流暢的體驗(yàn)(特別是在4速或5速中不卡頓),然后對(duì)游戲模擬的速度有一些改進(jìn)。
Speaking of which, I have read and seen a bunch of "guides" to HoI performance over the past months sharing tips & tricks on how to improve the game speed, so let me give you mine: consider disabling VSync in your graphics settings, unless you have a high refresh rate monitor.
說到這里,我在過去幾個(gè)月里閱讀品鑒了一堆關(guān)于HOI性能的“指南”,分享了如何提高游戲速度的技巧和竅門,所以我也和你們分享一下我的訣竅:考慮在你的圖形設(shè)置中禁用VSync,除非你有一個(gè)高刷新率的顯示器。
The way the game simulation waits for rendering to be done to continue, with a slow refresh rate your CPU might end up spending precious time waiting on your monitor VSync which is not ideal. This root of the issue is difficult to address on HoI4 especially with DirectX9, but with DirectX11 becoming the default we will see if there is a way we can address this in the future. No promises though.
游戲模擬是等待渲染完成后才繼續(xù)進(jìn)行的,在刷新率較慢的情況下,你的CPU可能最終花費(fèi)寶貴的時(shí)間來等待顯示器的VSync,這并不理想。這個(gè)問題的根源在HOI4上很難解決,特別是在DirectX9上,但隨著DirectX11成為默認(rèn)選項(xiàng),我們將看看是否有辦法在未來解決這個(gè)問題,雖然不能保證解決這個(gè)問題。
Final Thoughts
最后的想法
Last year I had some extra French content to show, but I'm afraid this patch I was a bit short on time to bring you more. Although if you like Tech and History, I recently wrote a technical presentation on how to crack Enigma on a modern computer, with a focus on bringing the works of Marian Rejewski to light (as he and the Polish Cipher Bureau tend to be left aside in favour of Alan Turing and Bletchley Park in many stories). There's no recording available yet, but I'm scheduled to deliver twice more this year at tech conferences so they'll be on Youtube eventually.
去年我展示了一些額外的法國(guó)內(nèi)容,但這個(gè)補(bǔ)丁恐怕時(shí)間有點(diǎn)緊,無法給你帶來更多的內(nèi)容。如果你喜歡技術(shù)和歷史,我最近寫了一篇關(guān)于如何在現(xiàn)代計(jì)算機(jī)上破解恩尼格瑪?shù)募夹g(shù)展示,重點(diǎn)是讓人們了解Marian Rejewski的作品(因?yàn)樵谠S多故事中,他和波蘭密碼局往往被拋在一邊,而更多地談及圖靈和布萊切利公園)。目前還沒有錄音,但我今年計(jì)劃在技術(shù)會(huì)議上再講兩次,所以最終會(huì)在Youtube上播出。
Speaking of Poland, have you all found my secret event in Barbarossa yet?
說到波蘭,你們發(fā)現(xiàn)我在巴巴羅薩里面塞進(jìn)的秘密事件沒有?

安娜斯塔西婭·羅曼諾夫的命運(yùn)
隨著波蘭及其盟友攻占莫斯科,我們的特工從NKVD的檔案里面發(fā)現(xiàn)了一些記錄,揭示了羅曼諾夫家族的悲慘命運(yùn)。這份報(bào)告確定,整個(gè)皇室,包括安娜斯塔西婭,都被布爾什維克黨人在1918年7月處決。如果我們不趕快采取行動(dòng),全世界很快就會(huì)發(fā)現(xiàn)我們女王的真實(shí)身份并不是她展現(xiàn)出來的那個(gè)樣子的。
- 掩蓋證據(jù),全世界永遠(yuǎn)不會(huì)知道。
- 需要另一個(gè)人來戴上波蘭的王冠?。ㄐ苄芊鹨撂┛顺蔀橹辛⒅髁x政黨的領(lǐng)導(dǎo)人)
That'll be all for today, but I'll be happy to answer your questions, tech or otherwise!
今天的全部?jī)?nèi)容就是這些,我很樂意回答大家的問題,包括技術(shù)問題和其它的一些問題!
翻譯:月蝕
校對(duì):zzztotoso 三等文官猹中堂
歡迎關(guān)注UP主和主播小牧Phenix!
歡迎關(guān)注牧游社微信公眾號(hào)和知乎專欄!微信公眾號(hào)改版為信息流,歡迎【置頂訂閱】不迷路,即時(shí)獲得推送消息!
B站在關(guān)注分組中設(shè)置為【特別關(guān)注】,將會(huì)在私信內(nèi)及時(shí)收到視頻和專欄投稿的推送!
歡迎加入牧有漢化,致力于為玩家社群提供優(yōu)質(zhì)內(nèi)容!組員急切募集中!測(cè)試群組822400145!? ?
本作品英文原文著作權(quán)屬Paradox interactive AB所有,中文譯文著作權(quán)屬牧有漢化所有。?