Why 3D Game Agent Benchmarks Fail: Code That Runs Isn't Code That's Fun
This article explains why passing code generation benchmarks does not mean an AI agent can build a 3D game people actually want to play. It covers a zero-template benchmark design for long-horizon 3D game generation, a three-layer evaluation approach combining source-code-adaptive functional tests, in-browser runtime scoring, and blind human preference testing with the Bradley-Terry model, and key findings showing similar functional pass rates but roughly 2.6x differences in human preference. It closes with practical recommendations for making playability an observable metric.
1. The Starting Problem: Compiling Is Only the Passing Grade
Give a coding agent an empty folder, a design document, and a UI reference image, then let it work for hours and make thousands of tool calls to build a large 3D web game from scratch. Will the output be something people actually want to play?
Over the past two years, most evaluations of code generation have been conducted in a “greenhouse”: tasks are compressed into single-file mini-games, or the setup pre-installs an engine template, 2D assets, and test hooks, letting the model finish in fewer than a hundred steps. Such setups can test syntactic correctness and basic logic, but they cannot capture the difficulty of real 3D development.
Real projects require the agent to handle architecture layering, asset acquisition and integration, physics parameter tuning, and camera and input system adaptation on its own. A missing piece in any of these areas leaves you with something that “runs but isn’t playable.” So the first principle of evaluation should be this: define passing as runnable, and define excellence as something people want to play repeatedly.
2. Benchmark Design: No Templates, No Assets, No Test Hooks
The core of a 3D game generation benchmark aimed at ultra-long-horizon tasks is to remove the greenhouse entirely.
The task set should be on the order of one hundred tasks, covering more than a dozen classic genres, such as tower push battles, drift racing, boss fights, platform jumping, tower defense, and puzzles. Difficulty is split roughly 80/20 into medium and hard tiers, with the hard tier requiring full 3D presentation and commercial-grade completeness.
The agent’s input is strictly limited to a 2,000–5,000 word design specification plus a UI reference image, with a completely blank workspace. 3D models must either be retrieved from public resources or produced in real time by generative 3D capabilities. With no pre-built scenes and no test hooks, the model must decide on its own the directory structure, state management, and asset loading strategy.
Task scale directly determines the engineering shape. A single build involves on average about 1,000 tool calls and 20 3D assets, with a median time between 2.6 and 7.9 hours. The most extreme run reached more than 14,000 calls, consumed 2.13 billion tokens, and brought in over 600 assets. These numbers show that the bottleneck for ultra-long-horizon agents is not single-step reasoning, but context management, failure rollback, and resource cost control.
3. Three-Layer Acceptance: From Source-Code Adaptation to Human Preference
A single-dimension automated score cannot reflect game quality, so evaluation should be split into three layers.
The first layer is source-code-adaptive functional acceptance. Because the project structure generated by each agent differs, test scripts cannot hardcode paths. They need to first locate the entry point and key modules in the source code, then dynamically inject test cases to verify whether core mechanics such as movement, collision, scoring, and win/loss determination actually work.
The second layer is multi-dimensional scoring during live runs. The flow is executed automatically in a browser and recorded, then evaluated across dimensions including 3D visual presentation, scene completeness, control feedback, and playability, with emphasis on catching issues that only surface at runtime, such as mesh clipping, camera jitter, and physics instability.
The third layer is anonymous blind testing with real people. Multiple games produced from the same design document are played by testers who do not know their origin and who pick one over another in pairwise comparisons. The collected win/loss relationships are fitted into a preference win rate using the Bradley-Terry model. The illustrative logic is as follows:
# Fit human preference strength from pairwise match outcomes# w[i] is the preference strength of option i, p(i beats j) = sigmoid(w[i] - w[j])loss = -sum(log_sigmoid(w[a] - w[b]) for a, b in outcomes)w = optimize(loss, reg="l2")win_rate = softmax(w)
4. Key Findings: Functional Parity, Experience Gap of Several Times
After a cross-evaluation of multiple native configurations at the highest reasoning effort, a counterintuitive conclusion emerged: the gap in functional acceptance and code runnability was small, with most solutions running the core gameplay. Yet the preference win rate in blind human testing showed a gap of about 2.6x.
The reasons are concentrated in hard-to-automate aspects such as playability: whether the controls feel sluggish, whether the camera follows naturally, whether the difficulty curve is reasonable, whether the 3D asset styles are consistent, and whether the frame rate is stable. These metrics are nearly invisible in static checks, yet they determine whether a player quits within thirty seconds.
The engineering takeaway is that when evaluating coding agents, runtime experience and human preference must be brought into the loop. Otherwise, the optimization direction degrades into “making the tests pass” rather than “making it playable.”
5. Practical Recommendations: Make Playability an Observable Metric
Teams that want to reuse this method internally can start with four things.
First, set up an empty-workspace sandbox, using a container platform and object storage to isolate the runtime environment and archive the source code and assets of each build for reproducibility. Second, connect the tool call chain and token consumption to logging services and monitoring alerts, and set checkpoint resume and budget caps for ultra-long tasks. Third, turn functional acceptance into a source-code-adaptive test framework to avoid hand-writing scripts for every output. Fourth, maintain a small pool of human evaluators and continuously calibrate the correlation between automated scoring and human preference through pairwise comparisons.
The ultimate goal is not to make the agent write longer code, but to have it deliver a 3D world that someone is willing to open and play a second round.
