Sizeof(Class) Comparison per Unreal Release

sizeof() on 130 core engine classes across every release from 4.27 to 5.8

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.

Full Sheet: https://tinyurl.com/4ut5e2fb

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.

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.

1. LWC / Chaos TAX: Every Math Type is exactly 2x

Type 4.27 UE5
FVector 12 B 24 B
FRotator 12 B 24 B
FQuat 16 B 32 B
FTransform 48 B 96 B
FMatrix 64 B 128 B
FBoxSphereBounds 28 B 56 B

2.00x, every one. That’s Large World Coordinates:

float → double, engine-wide, in 5.0.

Why this hurts more than the mere size increase:

  • SIMD lane count halves. A 128-bit XMM register holds 4 floats or 2 doubles. UE5’s VectorRegister4Double is either 2x __m128d or 1x __m256d. On an SSE2 baseline, every 4-wide vector op is now TWO register ops. Same math, double the instruction count.
  • FMatrix stopped fitting in a cache line. 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.
  • FTransform at 96 B straddles lines on any non-64-aligned allocation. Bone arrays, instance transforms, physics sync, all of it moves 2x the bytes through the same L1.
  • You pay a conversion tax at the render boundary. Gameplay is double. GPU-Scene is float. Every frame you’re rebasing into translated world space and narrowing FMatrix → FMatrix44f. That extra processing didn’t exist in 4.27.

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.

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.

2. Hot Path Small Structs

Type 4.27 UE5 Ratio
FOverlapResult 24 B 72 B 3.00x
FHitResult 144 B 264 B 1.83x
FFindFloorResult 156 B 280 B 1.79x
FRepMovement 52 B 136 B 2.62x
FSavedMove_Character 720 B 1152 B 1.60x

These aren’t allocated once. They’re allocated per query, per frame, per actor.

A single OverlapMultiByChannel 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.

FRepMovement at 2.62x: it’s the struct that replicates position/velocity/rotation for every relevant actor, every net update. That’s memory & net serialization overhead.

3. RENDERING: Lumen / Nanite / VSM / TSR Overhead

FSceneView 5952 → 9504 B in 5.0 alone. Peaked at 10,336 B in 5.5.

+3552 bytes in ONE release. That’s Lumen view state, VSM page-table references, Nanite culling params, TSR history handles, Substrate. FSceneView 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.

Type 4.27 UE5 Ratio
FRenderResource 16 B 40 B 2.50x
FVertexBuffer 24 B 48 B 2.00x

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

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.

Type 4.27 UE5 Note
FStaticMeshVertexBuffer 136 B 208 B +53%, the jump lands in 5.2
FSkeletalMeshLODRenderData 1312 B 2240 B 1.71x, +544 B just since 5.3

The skeletal one is skinning cache + ray tracing geometry + Nanite skinned mesh support, per LOD, per mesh. FPrimitiveSceneProxy 480 → 896 B at 5.0 (1.87x), now 688 B.

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.

4. NANITE Instancing Signal

Type 4.27 UE5 Ratio
UInstancedStaticMeshComponent 1696 B 3008 B 1.77x
UHierarchicalInstancedStaticMeshComponent 1936 B 3344 B 1.73x

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. UStaticMesh: 992 → 2008 B (2.02x). Nanite resources, RT proxy, LOD streaming state. The asset class that every level is made of literally doubled.

5. GAMEPLAY CORE

Type 4.27 UE5 Note
AActor 760 B 1128 B 18 cache lines to reach your own fields
APawn 856 B 1256 B  
ACharacter 1440 B 2144 B +704
UCharacterMovementComponent 2816 B 4192 B +1376

UCharacterMovementComponent 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. APlayerCameraManager: 11,248 B. 176 cache lines. A third of your L1D in one object.


What is Unreal Engine Vite doing?

There are some specific UE5 savings, for example the UClass, FProperty, and FText classes. I’m currently testing these savings internally.

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.

Check ueVite: https://github.com/GapingPixel/UnrealEngineVite-PhysX/

Vite’s Community: https://discord.gg/n9zQrYFhMb

Originally published on X by @theredpix.

Back to the blog

ViteTech technology

Global illumination · replaces Lumen

ViteGI

The most efficient global illumination solution for Unreal Engine. Path tracing that runs faster than Lumen, and ahead of it at every quality tier.

Explore ViteGI

Mesh rendering · replaces Nanite

Vertis

Mesh rendering that beats Nanite. It works at the engine level, keeps every material working, and leaves the classic artist workflow untouched.

Explore Vertis

Physics · replaces Chaos

ViteX Physics

Hyper-performant physics built on PhysX. A full-featured physics SDK with vendor-agnostic GPU acceleration, destruction, cloth, particles and hair.

Explore ViteX Physics

ECS framework

Vite ECS

A Flecs-based ECS framework for high-density crowds: 10,000 skinned meshes and 100 million triangles, every one casting dynamic shadows.

Explore Vite ECS

Get in touch

Want to know what ViteTech can do for your project, or follow the work as it ships? Join the community Discord and talk to the team directly.

Join the Discord