Skip to Content
BlogsClaude Code in Unity: We Benchmarked It on a Game
Claude Code in Unity: We Benchmarked It on a Game
AI Model Benchmark

Claude Code in Unity: We Benchmarked It on a Game

By Ziva.sh • August 4, 2026 • 2 min read

Ziva runs docked in the Unity editor now, in beta, so we reran our Godot benchmark there: build a playable Flappy Bird as an agent, three prompts, 20-minute cap each. Claude ran on a Pro/Max subscription.

ModelTool callsWall timeBuild costRubricStars
DeepSeek v4 Flash (free)15845.6 min (2 capped)$0.619/103/5
DeepSeek v4 Pro41342.9 min (1 capped)$11.96*9/103/5
Claude Sonnet 5 (BYO)38428.2 min$7.34*5/102/5
Claude Opus 5 (BYO)21333.6 min$14.73*10/104/5

* List-price equivalents, not billed: Claude ran on a subscription and this account has a 100%-off promotion on Pro. Flash’s 61 cents is real spend.

Cost per 3-turn Flappy Bird build in UnityUnity 6.4, default reasoning effort, 20-minute per-turn capbilled by the gatewaylist-price equivalent ($0 actually billed)DeepSeek v4 Flash$0.61158 tool callsClaude Sonnet 5$7.34384 tool callsDeepSeek v4 Pro$11.96413 tool callsClaude Opus 5$14.73213 tool calls
Only the DeepSeek v4 Flash bar is money that changed hands. The Claude runs were covered by a connected subscription, and this account carries a 100%-off promotion on DeepSeek v4 Pro — for those three we show what the same tokens list for at catalog rates.

Sonnet 5 wrote the cleanest code and a game you cannot play. The scripts are correct; the scene is not. The camera sees y −5 to +5; Sonnet put the Ground at y = −250, so the bird dies before the first pipe arrives.

Green pipe pairs scrolling across a blue sky, no bird on screen

Opus 5 shipped a working game and, unprompted, a 306-line PlayMode suite — twelve tests, run sixteen times, ending at thirteen passing. One failure (“an in-flight keypress must not skip the overlay”) is why it added a restart delay.

Game over screen: pipes, Score 2, Best 3, Restart button

DeepSeek v4 Flash, the free model, shipped a full game for 61 cents — built entirely in code — but capped on two turns. Same prompts cost $0.18 in Godot.

Blue sky, brown ground, yellow bird, green pipe pair

DeepSeek v4 Pro matched that 9/10 in 413 calls, but made zero cache reads to Flash’s 10.4 million — most of the twenty-fold cost gap.

Gradient sky, brown ground, yellow bird, green pipes

Unity went from 12 tools to 21 this release, adding run_tests, find_gameobjects and manage_asset. Two of four models used run_tests unasked.

Caveats: n=1 per model, one task type, wall times not comparable across engines. One Unity-beta defect cost three runs — a changed-API edit raises a modal dialog that blocks the editor, and -accept-apiupdate doesn’t stop it. The beta is in Ziva.