<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Eason Chen on Medium]]></title>
        <description><![CDATA[Stories by Eason Chen on Medium]]></description>
        <link>https://medium.com/@eason-chen?source=rss-f7b0d748d526------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*LRm88n114FUE9YzGc2QVDQ.jpeg</url>
            <title>Stories by Eason Chen on Medium</title>
            <link>https://medium.com/@eason-chen?source=rss-f7b0d748d526------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 21:06:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eason-chen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[UE4 Root Motion Source]]></title>
            <link>https://eason-chen.medium.com/ue4-root-motion-source-91211543dd9d?source=rss-f7b0d748d526------2</link>
            <guid isPermaLink="false">https://medium.com/p/91211543dd9d</guid>
            <category><![CDATA[ue4]]></category>
            <category><![CDATA[gameplay]]></category>
            <category><![CDATA[rootmotion]]></category>
            <category><![CDATA[movement]]></category>
            <dc:creator><![CDATA[Eason Chen]]></dc:creator>
            <pubDate>Thu, 14 Jan 2021 03:53:55 GMT</pubDate>
            <atom:updated>2021-01-14T03:53:55.395Z</atom:updated>
            <content:encoded><![CDATA[<p>說到Root Motion, 通常會想到的是Root Motion Animation — 將位移量嵌在Animation中, 角色Tick Pose時會計算frame之間root bone的位移量, 並換算成velocity與acceleration, 然後PerformMovement, 如此可以表現出動作的速度與力道, 但是在多人遊戲中, Root Motion Animation是個不安定因素</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*JXqyhQkH_hfGpngu.jpg" /></figure><p>UE4的Root Motion Animation系統支援Predict/Correction, 也就是Autonomous在播放Root Motion時, 可以不用等Server Roundtrip, 直接看到效果, 不過當網路不穩或是Server fps不穩時, 玩家就會發生被Server拉回校正的現象</p><p>Paragon中使用了Root Motion Source 這方法來處理角色的特殊位移, 例如Muriel的絕招, 需要先往上飛到特定高度, 再往一個指定對象俯衝過去</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*ra9e6maIjF-F0_Kxw_GnOg.png" /><figcaption>Muriel</figcaption></figure><p>RootMotionSource最簡單的用法是在GAS中使用已經建好的Root Motion Tasks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*uA3264hgCC7ylpcRGRp95Q.png" /><figcaption>Root Motion Source Tasks</figcaption></figure><h3>Apply Root Motion To Actor</h3><p>六種Task參數雖然不同但是基本原理差不多, 這邊只介紹一種Apply Root Motion To Actor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*WwtOvUMDqOJJSLJPUo-zNQ.png" /><figcaption>apply root motion move to actor force</figcaption></figure><p>設定TargetActor與Duration後, 角色會以速度 = (TargetActor之距離/duration)直線往目標對象移動</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*uO_5Tx01hnI_rgVx8YH5vQ.png" /><figcaption>xyz可以各自變化, time必須normalize在0-1</figcaption></figure><p>加上PathOffsetCurve(Vector Curve)後, 就可以在指定的時間時給予額外的位移, 例如給一個高度變化的curve如上圖</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*RUbuYwReonZRChDD4NoY8Q.png" /><figcaption>Time Mapping Curve(Float curve)</figcaption></figure><p>Animation Root Motion中隨著角色動作不同會有不同的速度與位移, 這點在Root Motion Source裡是靠Time Mapping Curve完成, Time Mapping Curve的規則就是把linear的time再做一層轉換, mapping curve的結果值會直接當作lerp function的alpha, 也就是說0=起點, 1=終點</p><p>要讓過程中的速度有快有慢, 也可以利用TargetLerpSpeedHorizontalCurve與TargetLerpSpeedVerticalCurve, 這兩個是float curve, 計算的規則如下</p><p>原本位置P, tick計算出這frame要移動到的目標位置P’</p><p>V = P’-P</p><p>Vn = V / |V|, normalized</p><p>CompletePercent = (CurrentTime — StartTime) / Duration, 經過時間百分比</p><p>HSpeed = TargetLerpSpeedHorizontalCurve.sample(CompletePercent)</p><p>VSpeed = TargetLerpSpeedVerticalCurve.sample(CompletePercent)</p><p>V’ = (Vn.x, Vn.y, 0) * HSpeed * <strong>Δt + </strong>(0, 0, Vn.z) * VSpeed * <strong>Δt</strong></p><p>P’ = P + V’</p><p>這四個Curve功能中, PathOffsetCurve和Time Mapping Curve是CharacterMovement裡面的基本功能, TargetLerpSpeedHorizontalCurve和TargetLerpSpeedVerticalCurve則是AbilityTask的擴充功能</p><h3>其他參數</h3><p>Movement Mode是在執行RMS前要不要切換movement mode</p><p>FinishVelocity系列是指結束時速度要怎麼管理: 歸零/保持原速度/限制最大速度</p><p>bDisableDestinationReachedInterrupt設定離目標夠近時要不要提前結束, 夠近的意思是小於50單位, 目前是寫死在程式裡了</p><p>bRestrictSpeedToExpected是速度校正的計算, 譬如過程中遇到一些collision而影響到角色的實際位置, 打勾的話會不斷修正速度, 盡可能保持在原定的路線上</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91211543dd9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UE4.25 VFX System Niagara with Audio]]></title>
            <link>https://eason-chen.medium.com/ue4-25-vfx-system-niagara-with-audio-91a08053a9b9?source=rss-f7b0d748d526------2</link>
            <guid isPermaLink="false">https://medium.com/p/91a08053a9b9</guid>
            <category><![CDATA[vfx]]></category>
            <category><![CDATA[audio]]></category>
            <category><![CDATA[ue4]]></category>
            <category><![CDATA[ue4-niagara]]></category>
            <dc:creator><![CDATA[Eason Chen]]></dc:creator>
            <pubDate>Fri, 14 Aug 2020 06:15:27 GMT</pubDate>
            <atom:updated>2020-08-14T06:15:27.127Z</atom:updated>
            <content:encoded><![CDATA[<p>Niagara是UE4的新粒子特效系統</p><p>4.25中支援從audio拿到目前播放中音樂高音跟低音的強度, 並用來做一些視覺效果</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*HJvxUSPgI7-Iz59u2sllVw.png" /><figcaption>[結果] UE4 Media Player: 右-&gt;左 = 低音-&gt;高音</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*u8V7enW8wB85vbIrs2wl6w.png" /><figcaption>範例音樂*2, NE_Audio(Niagara Emitter), NE_Audio_System(Niagara System), NM_Audio(Niagara Module Script)</figcaption></figure><p>首先創一個Niagara Module Script, 這個module要處理audio訊號, 並轉成自定義變數, 讓niagara系統可以使用</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BdEjU1nfv1GXXxFTBa9VAw.png" /><figcaption>Module關於Audio Spectrum的設定</figcaption></figure><p>Audio Spectrum的input NormalizedPositionInSpectrum需要傳入一個0-1的值</p><p>0代表低音, 1代表高音, 傳入後會回傳這個頻率的聲音的強度值Amplitude, 我的作法是首先根據Particles ID的index決定該參考的是哪個頻率的強度, 把Amplitude數值smooth後(smooth lerp over time), set到自訂變數Particles.AudioAge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijoIiqAojy-lIg1zGO5xZQ.png" /><figcaption>module全部長這樣</figcaption></figure><p>除了audio的部分, 另外有根據particle id的index設定position跟color, 方便觀察, position的部分有用到Particles.AudioAge當作視覺上高度變化</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*pNQK5dFsDsVX-0fH3N2Dkw.png" /><figcaption>add NM_Audio to NE_Audio</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*UN-cBusCHwgycVTPdOHfMQ.png" /><figcaption>[Sprite Size Scale]CurveIndex = Particles.AudioAge</figcaption></figure><p>完成了, 在niagara emitter中加入NM_Audio, 然後到content browser按下音樂撥放!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*GVERw8UUolGT2ST3qoPdwA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91a08053a9b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UE4 Control Rig系統 — Control Rig和Control Rig Sequence]]></title>
            <link>https://eason-chen.medium.com/ue4-control-rig%E7%B3%BB%E7%B5%B1-control-rig%E5%92%8Ccontrol-rig-sequence-ab5c0aa2ca20?source=rss-f7b0d748d526------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab5c0aa2ca20</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[ue4]]></category>
            <category><![CDATA[rig]]></category>
            <dc:creator><![CDATA[Eason Chen]]></dc:creator>
            <pubDate>Fri, 13 Mar 2020 02:14:19 GMT</pubDate>
            <atom:updated>2020-03-13T02:14:19.011Z</atom:updated>
            <content:encoded><![CDATA[<h3>UE4 Control Rig系統 — Control Rig和Control Rig Sequence</h3><p><strong>Control Rig</strong></p><ul><li>有點像是Animation BP, 可以在裡面塞一些類似控制器的東西</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*FBm-GualxrmTbxlI2xSg6w.png" /><figcaption>第一步先到Hierarchy中import一組骨架設定</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*31yAXHceGYxiUPUOsp_BtQ.png" /><figcaption>選一個preview mesh, 否則甚麼都看不到</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*OmxxEvWUFX4sxp_0OT5-6A.png" /><figcaption>Rig graph串控制邏輯: 頭: Aim(aim at左手的effector), 左手: Basic FABRIK</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*ZL7763Kvaxvk_q9SfUUzBg.png" /><figcaption>右手: Basic IK</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*bbdic20qcSKW-4DVxhYeRg.png" /><figcaption>選Control node後, 可以在預覽view內拖動transform來預覽結果</figcaption></figure><p>我的實驗結果中</p><p>只有FABRIK有用</p><p>Basic IK看起來就是TwoBone IK, 但是串了沒反應QAQ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*U8l5Sozpc_ei2QM1qTXi7A.png" /><figcaption>預覽結果</figcaption></figure><p>這邊可以看到左手IK有正常運作</p><p>頭的aiming也有對準左手</p><p>如果預覽結果都正常的話, 就可以把這個Rig BP存檔</p><p>進到下一步ControlRig Sequence</p><p><strong>Control Rig Sequence</strong></p><ul><li>bug非常多, editor選項有時候根本沒出現, 或是選了沒反應</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*s2Af-cbsgGzGCp0bUbDoFw.png" /><figcaption>創一個空的ControlRig Sequence</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*UPrG0FHO2IdEJpx6YyEztg.png" /><figcaption>Modes切到Animation page</figcaption></figure><p>Sequence指定剛剛創的那個asset</p><p>(注意這邊有時候會失敗, 也就是你選了但是啥都沒發生的現象)</p><p>然後隨便拉一個mesh到場上然後Actor滴管這個actor</p><p>(注意這邊有時候會失敗, 也就是你選了但是啥都沒發生的現象)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*3LTYz444JgjIdrIIRvFtbQ.png" /><figcaption>Sequencer中+Track選創好的Control Rig</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*trH7GSKey2h5Uwy6jy7X4w.png" /><figcaption>+Track選Rig Graph中所有的Control node</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*lMHX7qJWIki_URA-pQYdPA.png" /><figcaption>接著就可以安排keyframe</figcaption></figure><p>順利的話場上的actor會直接可以預覽動作</p><p>(我就是不順利的那個)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*J3eM8cH7ar0D3qE3kTTUyQ.png" /><figcaption>存檔目前的sequence</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*xhWTeINzPlXuH-wCjXF64A.png" /><figcaption>最後一步: export to animation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*P5ock6hMmOdQjbxye8Yk0g.png" /><figcaption>選mesh和創一個新的animation asset</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*5U6otjxZYeQvDTASuLURDg.png" /><figcaption>最後結果, 得到了一個新的animation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*x6o8e1p_SqTwc93X6ZbzuA.png" /><figcaption>對著anim sequence右鍵選單中會有一個Re-import from rig sequence</figcaption></figure><p>以上就是Control Rig的簡單介紹,</p><p>沒有甚麼困難的步驟, 會寫成文章只是因為<strong>參考太少加上bug很多</strong></p><p>我是在4.23版本下使用的, 官方的教學版本是4.21</p><p>而4.23的rig graph已經跟4.21長得不一樣了</p><p>我也試過用4.24, 遇到Modes/Animation中甚麼都看不到不能選的bug</p><p>參考</p><p><a href="https://www.youtube.com/watch?v=TYSdxW2WHcI&amp;t=491s">Enhancing Animation with Control Rig | GDC 2019 | Unreal Engine</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab5c0aa2ca20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unreal 4 Garbage Collection]]></title>
            <link>https://medium.com/neobards/unreal-4-garbage-collection-cf22702e6ab5?source=rss-f7b0d748d526------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf22702e6ab5</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[memory-management]]></category>
            <category><![CDATA[ue4]]></category>
            <category><![CDATA[garbage-collection]]></category>
            <dc:creator><![CDATA[Eason Chen]]></dc:creator>
            <pubDate>Wed, 05 Jun 2019 08:44:22 GMT</pubDate>
            <atom:updated>2019-07-17T03:17:24.583Z</atom:updated>
            <content:encoded><![CDATA[<h3>Garbage Collection in Unreal Engine 4</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*2Z7DDmW9GuA_3PNdNdtUPQ.jpeg" /><figcaption>“ assorted-color plastic toy lot” by <a href="https://unsplash.com/@egnaro">Rick Mason</a> on <a href="https://unsplash.com/photos/2FaCKyEEtis">Unsplash</a></figcaption></figure><p>Garbage Collection (GC) 是 Unreal Engine 4 (UE4) 處理記憶體的方法之一。GC會自動刪掉那些遊戲中已經“不再需要”的物件，“不再需要”的意思就是這個物件已經沒有被其他物件參考到，而 UE4 的 GC 是以 Tracing 去找出些不需要的物件。</p><h3>1. UE4 中的 GC 會處理哪些物件？</h3><h4>GC 對象就是那些 UObject！</h4><p>除了自訂的 UClass/UProperty/UFunction 之外，Blueprint 中串邏輯的 node 也都各是一個 UObject，意謂著也受到 GC 管理。</p><p>以我們內部的專案來看，光是空的地圖有 40,000 個，而遊戲正式的地圖大概則有 80,000 到 100,000 個。目前知道有 2 個方法可以知道這些 UObject 的詳細資訊：</p><ol><li>原生 Console command: <em>Obj list</em></li></ol><p>主要是 runtime 時執行來確認 UObject 的數量，結果如下圖。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ywkw5FkRrW-QRbGwYk-5w.png" /><figcaption>“obj list” result</figcaption></figure><p>2. Blueprint Stats Plugin</p><p>在開啟 plugin 後，Console command輸入 <em>DumpBlueprintStats</em>。這個指令則是應該在 EditTime 執行，它會列出你專案內的 BP 中使用了哪些 K2Node，多少個 Custom Event 之類的資訊。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*OmTAEiLBNu7P61MyEwbAUw.png" /><figcaption>K2Node 統計</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQz6wHuiSRhWDw5chbmX0Q.png" /><figcaption>Function call 統計</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*BhHOh7iWpdeaZnTzM5mlnQ.png" /><figcaption>Macro 統計</figcaption></figure><h3>2. GC 的成本是？</h3><h4>GC Cost = Search cost + Delete cost</h4><p>UE4 的 GC 可以設定作用頻率，預設是 60 秒一次，而執行 GC 的那個 frame就會有執行的 GC Cost。</p><p>GC 執行時，需要先標記那些不可達的 UObject，然後再 delete 它們。</p><ul><li>Search cost = Mark phase 和 Reachability Analysis<br>Search 的成本是目前主要的負擔，雖然有 multi thread，但是 UObject 的數量太多時，遊戲就會出現明顯的卡頓。</li><li>Delete cost = 切斷 Reference 與執行 Object Destroy（可以分攤到不同frame，並非主要負擔）。</li></ul><h3>3. 那要如何最佳化 GC？或減少 GC 時的卡頓？</h3><ol><li>減少 BP Macro 的使用，盡量用 Function</li><li>BP 轉成用 C++</li><li>UE4 提供了開發者可以設定的 GC 最佳化參數</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*vcz_7iNF6vean1C3DO00Ug.png" /><figcaption>GC Optimization Settings</figcaption></figure><p>最佳化重點：減少 Search成本，怎樣可以找東西比較快。</p><ol><li>減少要找的對象總量 — Cluster</li><li>跳過那些不用 GC 的對象 — Disregard Index</li></ol><h4><strong>3.1 Project Setting and Log</strong></h4><p>預設很多功能是關閉的。但既然都要優化了，第一步就是全部都打開！</p><p>接著先 packaged 看看結果如何，可能會遇到 Assertion failed 導致遊戲開不起來。如果沒問題，就把 log 開起來看。</p><pre># <em>define UE_GCCLUSTER_VERBOSE_LOGGING (1 &amp;&amp; !UE_BUILD_SHIPPING)<br># define PROFILE_GCConditionalBeginDestroy 1<br># define PROFILE_GCConditionalBeginDestroy_byClass 1</em></pre><p>先把這三個 defintion 開起來，可以看到比較多資訊。另外，特別注意以下的 4 種 log：</p><ul><li>LogUObjectArray</li><li>LogUObjectAllocator</li><li>LogObj</li><li>LogGarbage</li></ul><h4>3.2 Cluster</h4><p>Cluster 是以 Actor 為單位，每個 Actor 會有一個 CanBeInCluster 的變數，而Cluster 必須在 CookedData 才會運作。在做可達性檢查的時候，那些在Cluster 中但不是 Cluster Root 的 object 可以略過，因此可以加快總時間。</p><p>最有效的是種在地圖上的 StaticMesh 轉換成 InstancedMeshActor 也可以成為 Cluster。</p><ul><li>失敗案例：Cluster 失敗的 log，會告訴你失敗的原因。</li></ul><pre><em>LogGarbage: Warning: Object BP_HPItemSpawner_C /Game/Map/Area_F/Area_F_Gameplay.Area_F_Gameplay:PersistentLevel.BP_HPItemSpawner2 from cluster LevelActorContainer<br>/Game/Map/Area_F/Area_F_Gameplay.Area_F_Gameplay:PersistentLevel.ActorCluster is referencing </em><strong><em>MaterialInstanceDynamic<br></em></strong><em>/Game/Map/Area_F/Area_F_Gameplay.Area_F_Gameplay:PersistentLevel.BP_HPItemSpawner2.ProgressDecal.</em><strong><em>MaterialInstanceDynamic_0</em></strong><em> which is not part of root set or cluster.</em></pre><ul><li>成功案例：Cluster 建立成功的 log，會告訴你 Cluster size。</li></ul><pre><em>LogLevelActorContainer: Created LevelActorCluster (2) for /Game/Map/Area_F/Area_F_Environment.Area_F_Environment:PersistentLevel with 4998 objects, 0 referenced clusters and 104 mutable objects.</em></pre><pre><em>LogObj: Display: LevelActorContainer /Game/Map/Area_F/Area_F_Environment.Area_F_Environment:PersistentLevel.ActorCluster (Index: 99720), Size 4998, ReferencedClusters: 0</em></pre><h4>3.3 Disregard Index</h4><p>Disregard Index是更有效的一手，以我們的遊戲來說，才剛執行起來就有49,500 個 UObject，這些很多是 UE4 自己的 UObject，所以 GC 的時候可以略過他們。</p><p>至於這個數字是多少，UE4 有準備一個輔助設定的方法：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*hBLGb1OIxpkoGrpfGEsu4Q.png" /><figcaption>啟動輔助設定</figcaption></figure><p>根據 Epic 官方文件，只要填入了上面的設定，然後 Package 遊戲，在遊戲啟動時，就會出現 log，便能可以數字填回去。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*ZphelbIR9bZoT-Z4sjgJRA.png" /><figcaption>輔助設定結果</figcaption></figure><p>Server 與 Client 應該要填不同數字，但目前的 Project Setting 卻只有一個欄位可填入…..</p><h3>4. 最佳化後可以加快幾倍？</h3><p>以我們的案例來說：</p><ul><li>Client 端可以加快約 11 倍</li><li>Server 端可以加快約 7 倍</li></ul><p>有一項 GC Verify 的時間消耗，但那個在 Shipping game 中不會執行</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*cV6fpqknlABaQtOb96snVA.png" /><figcaption>Client 端在 GC 尚未調整前的 cost 約為 22.1 ms</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AwDtyzW2TJOzR5Fi0SBa1A.png" /><figcaption>Client 端在 GC 調整後的 cost 約為 1.5~2.2 ms</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*I22j_YR3endORDNE0qVfyg.png" /><figcaption>Server 端在 GC 調整前的 cost 約為 22 ms</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*qp0DL8lSPg_Ab8wg0W3_wA.png" /><figcaption>Server 端在 GC 調整後的 cost 約為 3.2~3.3 ms</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf22702e6ab5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neobards/unreal-4-garbage-collection-cf22702e6ab5">Unreal 4 Garbage Collection</a> was originally published in <a href="https://medium.com/neobards">NeoBards</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>