# Building a Game Engine from Scratch (Day 6) - Frames in Flight & CPU-GPU Decoupling (DX12)

**URL:** <https://forums.unrealengine.com/t/building-a-game-engine-from-scratch-day-6-frames-in-flight-cpu-gpu-decoupling-dx12/2857101>\
**Category:** C++\
**Tags:** unreal-engine, CPP\
**Created:** [November 17, 2026, 11:26am UTC](https://forums.unrealengine.com/t/building-a-game-engine-from-scratch-day-6-frames-in-flight-cpu-gpu-decoupling-dx12/2857101 "2026-11-17T11:26:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinpc\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kevinpc_1/32/1215238_2.png) [@kevinpc\_1](https://forums.unrealengine.com/u/kevinpc_1)\
**Post date:** [November 17, 2026, 11:26am UTC](https://forums.unrealengine.com/t/building-a-game-engine-from-scratch-day-6-frames-in-flight-cpu-gpu-decoupling-dx12/2857101/1 "2026-11-17T11:26:36Z")

</div>

Welcome back to Low-Level Code! In Day 6 of building TitanEngine from scratch, we take our native C++20 and DirectX 12 engine to a professional, AAA-level architecture by implementing “Frames in Flight” (CPU-GPU decoupling).

By moving away from a single allocator and introducing a multi-buffered command allocator array alongside robust fence synchronization, we eliminate CPU stalls and maximize hardware throughput—all without relying on high-level abstractions or helper headers like d3dx12.h.

🛠 Tech Stack & Architecture:

- Language: Modern C++20
- Graphics API: Native DirectX 12 (Win32, DXGI 1.6)
- Architecture: Frames in Flight / Multi-buffering with ID3D12CommandAllocator & Fences
- Philosophy: Zero-Helper, Low-Level Engine Development from Scratch

```auto
-Day 6 video link:https://youtu.be/AncatH3ETLg

```

#GameDev #DirectX12 #Cplusplus #EngineProgramming #LowLevelCode #GraphicsProgramming
