[← Back to blog](https://bloomengine.dev/blog)

Experiment November 29, 2026 · The Bloom team

# Same prompt, three more engines: what an AI agent builds with C++, Unity and Unreal

Three more runs of the same prompt: C++ on SDL3, Unity 6.3 and Unreal 5.7. Each agent finished a playable racer in 63–72 minutes with no human input, built its own tests and never touched an editor's GUI. We did not tune anything; the point is what the LLM does with each stack, and every number is still here.

![The C++/SDL3 build mid-race: four cars into a corner, HUD with position 3/4 and minimap](https://bloomengine.dev/blog/same-prompt-three-more-engines/cpp-sdl3.jpg) ![The Unity build at 233 km/h on nitro, with three opponents ahead](https://bloomengine.dev/blog/same-prompt-three-more-engines/unity.jpg) ![The Unreal build firing nitro: speed lines, exhaust flames, 229 km/h](https://bloomengine.dev/blog/same-prompt-three-more-engines/unreal.jpg)

Same prompt, same assets, same agent. Left to right: C++ on SDL3, Unity 6.3, Unreal Engine 5.7. Screenshots taken by each agent's own test runs.

## What this is, and what it is not

In [the first post](https://bloomengine.dev/blog/one-racing-game-six-ways) we gave one spec for a small arcade racer to the same coding agent and had it build the game with Three.js, Bloom and Bevy. Since then we have run the identical prompt three more times on a Windows PC: in **C++ on SDL3**, in **Unity 6.3** and in **Unreal Engine 5.7**.

One thing up front, because it changes how to read every number below. The point is not to optimize each engine or framework down to its minimum. Nobody tuned a build setting, stripped a plugin or tried a second run. We gave each stack the same prompt and let the LLM run. What comes out is what an agent produces with that stack out of the box. A Unity or Unreal expert would ship something smaller and faster, and that is not what we are measuring. **This is more about the LLM than about the engines.** How far does the agent get on its own, how does it work with each tool, where does it lose time, and what does it cost?

## The setup

*   **Same spec, same assets, same model.** The three prompts carry the game spec and the 12-point Definition of Done of the Bevy prompt word for word. Only the engine section, the language-specific quality-bar lines, the build metrics asked for and the friction-log name differ. The model was Claude Opus 5.5 in Claude Code, and no human edited the code.
*   **A different machine.** A Windows 11 PC with an AMD Ryzen 5 7640HS, integrated Radeon 760M graphics and 26 GB RAM. The first arms ran on an M1 Max Mac and an iPhone 16 Pro, so build times and frame rates do not compare across the two posts.
*   **Run as subagents, told not to ask.** Each arm ran as a Claude Code subagent with its prompt plus a short preface: work only in your own folder, don't look at the other arms, and record any blocker instead of asking.
*   **Everything is public**, this time including the agents' full transcripts: [C++/SDL3](https://github.com/Bloom-Engine/racer-experiment/tree/main/arms/f-cpp-sdl3), [Unity](https://github.com/Bloom-Engine/racer-experiment/tree/main/arms/g-unity) and [Unreal](https://github.com/Bloom-Engine/racer-experiment/tree/main/arms/h-unreal) in [Bloom-Engine/racer-experiment](https://github.com/Bloom-Engine/racer-experiment).

## All three finished, in about an hour, alone

Each arm reached a playable 3-lap race against three AI cars. It took **63 minutes** in C++/SDL3, **72** in Unity and **71** in Unreal. Unreal's first attempt was stopped by accident after 5.5 minutes and restarted from a clean folder; that attempt is not counted. The transcripts contain exactly one message from outside each run: the task prompt. Unity also received one automated notification that a background task had finished. No person stepped in.

That is partly the setup. The Mac arms ran as standalone sessions, and each of them got at least one message from us mid-run, mostly a "continue" after we had interrupted it, or a note that we had unlocked an iPhone. The Windows arms were told to write blockers down instead of asking, and they never needed to.

## The agent takes the text-shaped road through every engine

The most interesting pattern is how each agent dealt with tools that are built around a GUI:

*   **Unity:** the agent never opened the editor. Scenes, prefabs, materials, the URP pipeline asset and the player build all come from C# editor scripts run in batchmode.
*   **Unreal:** all game logic is C++, with no Blueprints, because Blueprints are binary files the agent cannot write. The assets were imported by one headless editor Python script, and the map is built at runtime.
*   **C++/SDL3:** the agent wrote most of the stack itself, including an OpenGL renderer with its own loader for the ~60 GL functions it uses, an arcade vehicle model, an audio mixer and the HUD.

Whatever an engine only offers through its editor UI, the agent routes around in code. That is worth knowing if you build tools: for an agent, your headless and command-line paths are the product.

## It tests its own work

Nobody asked for it, but every arm built a test mode into its own game. These modes inject real key and touch events, drive the car with the AI as an autopilot, log pass or fail checks and save screenshots. The Unity arm's final run logged 70 checks with zero failures. The Unreal arm re-ran every scenario on its packaged Shipping build. The C++ arm ran a full race under AddressSanitizer with no reports. It also recorded its own mixer output and measured the engine pitch against the RPM, with a correlation of 0.95.

Those tests caught real problems. The Unreal arm's wall test fired the car into the barriers ten times at 299 km/h, and Chaos's built-in continuous collision detection let it through in 1–2 of the 10 runs. The agent's own test flagged it, a screenshot confirmed it, and the agent wrote its own per-frame wall sweep. That got it to 0 of 10 in every later run.

The limits are the same as before. Multi-touch was tested with simulated touches, not a real screen. No gamepad was connected, and nobody listened to the audio during the runs. A person played all three builds afterwards, and they worked as they should.

## Where the agent lost time

It was not API knowledge. All three agents checked APIs against the actual headers or package source before writing code: SDL2-to-SDL3 renames, Unity 6's physics renames, Unreal 5.6/5.7 input and font API changes. None of that cost an iteration. The time went to behaviour that is undocumented, especially when a tool runs headless:

*   **Unreal:** the glTF import crashed when run without the editor UI. A console variable silently overrode the "don't touch the content browser" flag, and the code then asserted on a Slate UI that did not exist. Fonts hit the same assertion. Imported glTF materials came out without parameters. The agent's own estimate is that friction cost about 40 minutes of a roughly 75-minute run.
*   **Unity:** several URP settings look writable but are read-only from code, there is no public way to create a complete URP renderer, and "Active Input Handling" has no scripting API. Windows paths ignoring case meant Unity's `Assets/` folder and the read-only `assets/` folder would have been the same folder, so the project moved into `game/`.
*   **C++/SDL3:** `SDL_MAIN_USE_CALLBACKS 0` still turns callbacks on, because SDL checks it with `#ifdef`. CMake presets can't load the MSVC environment by themselves. The ASan runtime DLL is only on the path inside a developer shell.

The friction logs have 9 entries for C++/SDL3, 13 for Unity and 14 for Unreal, each with the agent's own list of the five doc or API changes that would have helped most.

## What it cost

|  | F: C++ / SDL3 | G: Unity 6.3 | H: Unreal 5.7 |
| --- | --- | --- | --- |
| Agent working time | 1 h 03 | 1 h 12 | 1 h 11 |
| Model calls | 124 | 135 | 186 |
| Input tokens | 29.1M | 32.3M | 56.6M |
| Output tokens | 218k | 198k | 268k |
| Clean build | 38–40 s, dependencies included | 105.1 s to a finished player | 131.8 s full Shipping package incl. cook |
| One-line rebuild | 2.2–2.4 s | 15.1 s to a finished player | 8.8 s editor module / 10.6 s Shipping exe |
| Windows build size | 40.5 MB | 152 MB | 333.4 MiB |
| Uncapped fps, full race, 4 cars | ~277 at 1920×1080 | ~445 at 1280×720 | 215.6 at 1920×1080 |
| Friction-log entries | 9 | 13 | 14 |

Untuned on purpose. For example, about 32 MiB of Unreal's package is machine-learning plugins (NNE, DirectML, onnxruntime) that the engine enables by default and the game never uses. The agent noted it and left it, and so did we. The C++ arm is small and quick to build partly because it is a library, not an engine: a simpler renderer and no physics engine. Frame rates are on the PC's integrated GPU at the resolution each arm reported; with a 60 fps cap the C++ and Unity arms measured 59.9 and 59.99 fps; the Unreal arm only measured uncapped.

## All eight finished arms, from the LLM's side

Put the Windows arms next to the earlier ones and look only at the agent. That means how long it worked and how much it read and wrote. Build times and frame rates are left out, because the machines differ.

| Arm | Machine | Working time | Model calls | Input tokens | Output tokens |
| --- | --- | --- | --- | --- | --- |
| A1 Three.js, browser | Mac | 33 min | 62 | 12.0M | 175k |
| A2 Three.js → native port | Mac + iPhone | 2 h 38 | 165 | 36.3M | 112k |
| B Bloom native | Mac + iPhone | 1 h 13 | 186 | 61.7M | 184k |
| C Three.js + Bloom hybrid | Mac + iPhone | 2 h 12 | 138 | 37.4M | 156k |
| E Bevy | Mac | 2 h 25 | 163 | ≈44.2M | ≈214k |
| F C++ / SDL3 | Windows | 1 h 03 | 124 | 29.1M | 218k |
| G Unity 6.3 | Windows | 1 h 12 | 135 | 32.3M | 198k |
| H Unreal 5.7 | Windows | 1 h 11 | 186 | 56.6M | 268k |

One pattern stands out. **What the agent writes is fairly stable; what it reads is not.** Output ranges from 112k to 268k tokens, about 2.4× from smallest to largest. Input ranges from 12.0M to 61.7M, about 5×. Input grows with the number of turns and with how much code, documentation and engine source the agent has to keep in context.

Working time runs from the first prompt to the agent's last message before it was asked to log its effort, minus time spent waiting for us; the Windows arms never waited. Token counts are summed per API call from the transcripts. Arm D, the unfinished folio-2025 port, is left out. Arms A2, B and C also built for and ran on an iPhone, and E built for iOS, which the Windows arms could not do, so working time does not compare one-to-one either.

## What this does not show

*   **One run per arm.** A second run of the same prompt would make different choices.
*   **No phone numbers for F, G or H.** The spec's ≥ 55 fps on an iPhone 12-class phone could not be measured: the PC had no Android SDK, NDK or JDK, and there was no Mac. Each arm's NOTES lists exactly what is missing.
*   **Different machines and setups.** The Windows arms ran as subagents on a PC with a laptop-class CPU and integrated graphics. While F and H were starting, the Unity download and install was running on the same machine.
*   **It measures this model with these docs.** A different model, or the same model with better docs, would move every number. That is exactly why we publish the prompts, logs and transcripts.

Clone [the repository](https://github.com/Bloom-Engine/racer-experiment) and point your own agent at the same prompts. We would like to hear what yours does differently.
