<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://tech.vitestudiocom.net/rss.xml" rel="self" type="application/atom+xml" /><link href="https://tech.vitestudiocom.net/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-12-03T16:07:02-05:00</updated><id>https://tech.vitestudiocom.net/rss.xml</id><title type="html">ViteTech</title><subtitle>Drop-in engine technology for Unreal Engine 5 and Unreal Engine Vite: global illumination, mesh rendering, physics and ECS, built for frame time.</subtitle><author><name>ViteTech</name></author><entry><title type="html">Sizeof(Class) Comparison per Unreal Release</title><link href="https://tech.vitestudiocom.net/blog/2026-08-sizeof-class-comparison-per-unreal-release/" rel="alternate" type="text/html" title="Sizeof(Class) Comparison per Unreal Release" /><published>2026-08-04T00:00:00-05:00</published><updated>2026-08-04T00:00:00-05:00</updated><id>https://tech.vitestudiocom.net/blog/sizeof-class-comparison-per-unreal-release</id><content type="html" xml:base="https://tech.vitestudiocom.net/blog/2026-08-sizeof-class-comparison-per-unreal-release/"><![CDATA[<p>On why #EpicGames #UE5 carries more overhead on CPU/Memory than UE4; one part of the answer is measurable. I ran <code class="language-plaintext highlighter-rouge">sizeof()</code> on 130 core engine classes across every release from 4.27 to 5.8. The objects your game touches on #UE5 every frame got substantially bigger.</p>

<p>Full Sheet: <a href="https://tinyurl.com/4ut5e2fb">https://tinyurl.com/4ut5e2fb</a></p>

<p>All of this hits every platform, but it lands hardest on the two that matter a lot right now: Switch 2 and Steam Deck. Both share 4 MB of L3 across every core, and both run CPU and GPU off one memory bus; so every extra byte the game thread drags through cache is bandwidth the renderer doesn’t get. Switch 2 has it worse: its Cortex-A78C cores top out at 128-bit NEON with no SVE.</p>

<p>That’s where these byte counts stop being trivia and start being why the games on these platforms ship with unstable framerate with stuters/dips. Let alone the poor rendering fidelity.</p>

<h2 id="1-lwc--chaos-tax-every-math-type-is-exactly-2x">1. LWC / Chaos TAX: Every Math Type is exactly 2x</h2>

<table>
  <thead>
    <tr>
      <th>Type</th>
      <th style="text-align: right">4.27</th>
      <th style="text-align: right">UE5</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FVector</code></td>
      <td style="text-align: right">12 B</td>
      <td style="text-align: right">24 B</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FRotator</code></td>
      <td style="text-align: right">12 B</td>
      <td style="text-align: right">24 B</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FQuat</code></td>
      <td style="text-align: right">16 B</td>
      <td style="text-align: right">32 B</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FTransform</code></td>
      <td style="text-align: right">48 B</td>
      <td style="text-align: right">96 B</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FMatrix</code></td>
      <td style="text-align: right">64 B</td>
      <td style="text-align: right">128 B</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FBoxSphereBounds</code></td>
      <td style="text-align: right">28 B</td>
      <td style="text-align: right">56 B</td>
    </tr>
  </tbody>
</table>

<p>2.00x, every one. That’s Large World Coordinates:</p>

<p>float → double, engine-wide, in 5.0.</p>

<p>Why this hurts more than the mere size increase:</p>

<ul>
  <li><strong>SIMD lane count halves.</strong> A 128-bit XMM register holds 4 floats or 2 doubles. UE5’s <code class="language-plaintext highlighter-rouge">VectorRegister4Double</code> is either 2x <code class="language-plaintext highlighter-rouge">__m128d</code> or 1x <code class="language-plaintext highlighter-rouge">__m256d</code>. On an SSE2 baseline, every 4-wide vector op is now TWO register ops. Same math, double the instruction count.</li>
  <li><strong><code class="language-plaintext highlighter-rouge">FMatrix</code> stopped fitting in a cache line.</strong> 64 B was exactly one line, one fetch, one matrix. At 128 B it’s two lines. A 4x4 double multiply needs 8 SSE registers per operand instead of 4, and x86-64 only gives you 16.</li>
  <li><strong><code class="language-plaintext highlighter-rouge">FTransform</code> at 96 B straddles lines on any non-64-aligned allocation.</strong> Bone arrays, instance transforms, physics sync, all of it moves 2x the bytes through the same L1.</li>
  <li><strong>You pay a conversion tax at the render boundary.</strong> Gameplay is double. GPU-Scene is float. Every frame you’re rebasing into translated world space and narrowing <code class="language-plaintext highlighter-rouge">FMatrix</code> → <code class="language-plaintext highlighter-rouge">FMatrix44f</code>. That extra processing didn’t exist in 4.27.</li>
</ul>

<p>Ultimately Double precision isn’t really necessary for large open worlds. Other AAA Engines like Ubisoft’s Anvil/Snowdrop, Avalanche Studios’ Apex (Just Cause) or Rockstar’s RAGE (GTA V) ship worlds at that scale on 32-bit floats. Precision loss depends on the space you do the math in, not on how far the world extends.</p>

<p>At the end of the day, UE5 handles open worlds poorly anyway. World Partition is a uniform cell grid: a cell loads everything inside it whether you can see it or not, so cell size is one blunt knob traded between hitch size and memory. It replaced hand-authored sublevels, which let designers group actors by relevance instead of by position. Ease of use over performance. AKA Poor practice.</p>

<h2 id="2-hot-path-small-structs">2. Hot Path Small Structs</h2>

<table>
  <thead>
    <tr>
      <th>Type</th>
      <th style="text-align: right">4.27</th>
      <th style="text-align: right">UE5</th>
      <th style="text-align: right">Ratio</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FOverlapResult</code></td>
      <td style="text-align: right">24 B</td>
      <td style="text-align: right">72 B</td>
      <td style="text-align: right">3.00x</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FHitResult</code></td>
      <td style="text-align: right">144 B</td>
      <td style="text-align: right">264 B</td>
      <td style="text-align: right">1.83x</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FFindFloorResult</code></td>
      <td style="text-align: right">156 B</td>
      <td style="text-align: right">280 B</td>
      <td style="text-align: right">1.79x</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FRepMovement</code></td>
      <td style="text-align: right">52 B</td>
      <td style="text-align: right">136 B</td>
      <td style="text-align: right">2.62x</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FSavedMove_Character</code></td>
      <td style="text-align: right">720 B</td>
      <td style="text-align: right">1152 B</td>
      <td style="text-align: right">1.60x</td>
    </tr>
  </tbody>
</table>

<p>These aren’t allocated once. They’re allocated per query, per frame, per actor.</p>

<p>A single <code class="language-plaintext highlighter-rouge">OverlapMultiByChannel</code> returning 200 results moved 4.8 KB in 4.27. Now it moves 14.4 KB; through a 32 KB L1D. Broadphase result set no longer fits alongside anything else.</p>

<p><code class="language-plaintext highlighter-rouge">FRepMovement</code> at 2.62x: it’s the struct that replicates position/velocity/rotation for every relevant actor, every net update. That’s memory &amp; net serialization overhead.</p>

<h2 id="3-rendering-lumen--nanite--vsm--tsr-overhead">3. RENDERING: Lumen / Nanite / VSM / TSR Overhead</h2>

<p><code class="language-plaintext highlighter-rouge">FSceneView</code> 5952 → 9504 B in 5.0 alone. Peaked at 10,336 B in 5.5.</p>

<p>+3552 bytes in ONE release. That’s Lumen view state, VSM page-table references, Nanite culling params, TSR history handles, Substrate. <code class="language-plaintext highlighter-rouge">FSceneView</code> isn’t one object. It’s one per view per frame: main view, each shadow view, 6 faces per cube capture, every SceneCapture2D, every planar reflection. Multiply the bloat by your view count.</p>

<table>
  <thead>
    <tr>
      <th>Type</th>
      <th style="text-align: right">4.27</th>
      <th style="text-align: right">UE5</th>
      <th style="text-align: right">Ratio</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FRenderResource</code></td>
      <td style="text-align: right">16 B</td>
      <td style="text-align: right">40 B</td>
      <td style="text-align: right">2.50x</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FVertexBuffer</code></td>
      <td style="text-align: right">24 B</td>
      <td style="text-align: right">48 B</td>
      <td style="text-align: right">2.00x</td>
    </tr>
  </tbody>
</table>

<p>The base class of literally every vertex buffer, index buffer, and uniform buffer in the engine got 2.5x heavier.</p>

<p>Note the step: 16 → 32 at 5.2, then 32 → 40 at 5.6. That’s mesh streaming + RHI resource-state tracking metadata, paid by tens of thousands of resource objects.</p>

<table>
  <thead>
    <tr>
      <th>Type</th>
      <th style="text-align: right">4.27</th>
      <th style="text-align: right">UE5</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FStaticMeshVertexBuffer</code></td>
      <td style="text-align: right">136 B</td>
      <td style="text-align: right">208 B</td>
      <td>+53%, the jump lands in 5.2</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">FSkeletalMeshLODRenderData</code></td>
      <td style="text-align: right">1312 B</td>
      <td style="text-align: right">2240 B</td>
      <td>1.71x, +544 B just since 5.3</td>
    </tr>
  </tbody>
</table>

<p>The skeletal one is skinning cache + ray tracing geometry + Nanite skinned mesh support, per LOD, per mesh. <code class="language-plaintext highlighter-rouge">FPrimitiveSceneProxy</code> 480 → 896 B at 5.0 (1.87x), now 688 B.</p>

<p>Every primitive in your scene owns one. 100k primitives x 208 extra bytes = 20 MB of render-thread working set that didn’t exist, touched during visibility and GPU-Scene upload.</p>

<h2 id="4-nanite-instancing-signal">4. NANITE Instancing Signal</h2>

<table>
  <thead>
    <tr>
      <th>Type</th>
      <th style="text-align: right">4.27</th>
      <th style="text-align: right">UE5</th>
      <th style="text-align: right">Ratio</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">UInstancedStaticMeshComponent</code></td>
      <td style="text-align: right">1696 B</td>
      <td style="text-align: right">3008 B</td>
      <td style="text-align: right">1.77x</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">UHierarchicalInstancedStaticMeshComponent</code></td>
      <td style="text-align: right">1936 B</td>
      <td style="text-align: right">3344 B</td>
      <td style="text-align: right">1.73x</td>
    </tr>
  </tbody>
</table>

<p>Look at WHERE it happens: +512 bytes at 5.4 on both, in lockstep. That’s the ISM → GPU-Scene instance data rework — per-instance custom data, instance culling, the Nanite instance path. <code class="language-plaintext highlighter-rouge">UStaticMesh</code>: 992 → 2008 B (2.02x). Nanite resources, RT proxy, LOD streaming state. The asset class that every level is made of literally doubled.</p>

<h2 id="5-gameplay-core">5. GAMEPLAY CORE</h2>

<table>
  <thead>
    <tr>
      <th>Type</th>
      <th style="text-align: right">4.27</th>
      <th style="text-align: right">UE5</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">AActor</code></td>
      <td style="text-align: right">760 B</td>
      <td style="text-align: right">1128 B</td>
      <td>18 cache lines to reach your own fields</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">APawn</code></td>
      <td style="text-align: right">856 B</td>
      <td style="text-align: right">1256 B</td>
      <td> </td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">ACharacter</code></td>
      <td style="text-align: right">1440 B</td>
      <td style="text-align: right">2144 B</td>
      <td>+704</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">UCharacterMovementComponent</code></td>
      <td style="text-align: right">2816 B</td>
      <td style="text-align: right">4192 B</td>
      <td>+1376</td>
    </tr>
  </tbody>
</table>

<p><code class="language-plaintext highlighter-rouge">UCharacterMovementComponent</code> is 65 cache lines, and it ticks EVERY frame for EVERY character. 100 networked characters = 419 KB of movement component state, streaming through a 1-2 MB L2 slice every tick. In 4.27 that was 281 KB and it fit. <code class="language-plaintext highlighter-rouge">APlayerCameraManager</code>: 11,248 B. 176 cache lines. A third of your L1D in one object.</p>

<hr />

<h2 id="what-is-unreal-engine-vite-doing">What is Unreal Engine Vite doing?</h2>

<p>There are some specific UE5 savings, for example the <code class="language-plaintext highlighter-rouge">UClass</code>, <code class="language-plaintext highlighter-rouge">FProperty</code>, and <code class="language-plaintext highlighter-rouge">FText</code> classes. I’m currently testing these savings internally.</p>

<p>Beyond this, for general performance, some specific UE5 changes do improve certain aspects of an application’s performance. So far, the public release of Vite has over 300 UE5 backports focusing on performance, specific UE5 features, Editor, fixes, cooking, and other updates.</p>

<p>Check ueVite: <a href="https://github.com/GapingPixel/UnrealEngineVite-PhysX/">https://github.com/GapingPixel/UnrealEngineVite-PhysX/</a></p>

<p>Vite’s Community: <a href="https://discord.gg/n9zQrYFhMb">https://discord.gg/n9zQrYFhMb</a></p>

<p><em>Originally published on <a href="https://x.com/theredpix/status/2084725568487014642">X by @theredpix</a>.</em></p>]]></content><author><name>Vila Carlos (TheRedPixel)</name></author><category term="Engine" /><category term="UnrealEngine" /><category term="UE5" /><category term="GameDev" /><category term="Cpp" /><category term="GraphicsProgramming" /><category term="SIMD" /><category term="Optimization" /><category term="Nanite" /><category term="Lumen" /><category term="GameEngine" /><category term="Performance" /><category term="LWC" /><category term="Rendering" /><category term="Engineering" /><category term="ComputerScience" /><summary type="html"><![CDATA[On why #EpicGames #UE5 carries more overhead on CPU/Memory than UE4; one part of the answer is measurable. I ran sizeof() on 130 core engine classes across every release from 4.27 to 5.8. The objects your game touches on #UE5 every frame got substantially bigger.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://tech.vitestudiocom.net/assets/img/posts/sizeof-class.svg" /><media:content medium="image" url="https://tech.vitestudiocom.net/assets/img/posts/sizeof-class.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>