GameEngineBench: Evaluating Coding Agents on Real C++ Runtime Environments
This paper introduces GameEngineBench, a benchmark comprising 110 real-world C++ tasks within Unreal Engine 5 projects derived from nine game repositories, which evaluates coding agents' ability to implement and compile functional changes in complex, stateful real-time systems and reveals that even the strongest models struggle with deeply integrated game engine development.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you're teaching a robot to build a house. You could give it a simple instruction like "hammer this nail," and it might do a great job. But what if you asked it to walk into a house that's already half-built, figure out how the plumbing connects to the electrical wiring, and then install a new smart-lighting system without breaking the existing lights or causing a short circuit? That's a much harder test. This is the world of coding agents—artificial intelligences designed to write and fix computer code. For a long time, scientists have tested these robots on simple, isolated tasks, like solving a math puzzle or writing a single function. But the real world isn't a puzzle; it's a messy, living system where everything talks to everything else. The big question researchers are asking is: Can these AI agents handle the chaos of a real, running software system, or do they only work in a vacuum?
This paper, titled GameEngineBench, dives into that question by using video game engines as the ultimate test lab. Think of a game engine not just as a tool for making games, but as a complex, living city where characters (called "actors") run around, talk to each other, remember things, and react to the world. The researchers wanted to see if AI could step into this city, find a specific street, and fix a broken traffic light without causing a city-wide blackout. They built a benchmark called GameEngineBench using Unreal Engine 5, a popular and powerful game engine. They took 110 real-world tasks from nine different open-source game projects. These tasks weren't just "write a loop"; they were things like "make sure the player's inventory saves correctly," "fix the AI so it doesn't get stuck," or "make the multiplayer game sync up so everyone sees the same thing." The AI had to write code in C++ (a tough, precise programming language), compile it, and then actually run inside the game to prove it worked.
The results were a bit of a reality check for the AI world. The researchers tested 12 different "configurations" of top-tier AI models. The best performer, a model named claude-fable-5, managed to solve about 55.5% of the tasks on its first try. That sounds impressive, but it also means it failed nearly half the time. Even more telling, there were 31 tasks that none of the AI models could solve, no matter how hard they tried. The paper suggests that these failures weren't just because the AI made a typo or forgot a semicolon. Instead, the AI struggled with the deep, invisible rules of the game engine. It often forgot that some things need to happen on the "server" (the main brain) and not the "client" (the player's screen), or it messed up the timing of when an object is born or destroyed. It's like the AI knew how to write a sentence, but it didn't understand the grammar of the whole conversation.
The study concludes that while these AI agents are getting better, they still struggle with the messy, integrated reality of professional software development. They can write code that looks good on paper and even compiles without errors, but when you actually run it in a live, interactive system, it often breaks the delicate balance of how the system works. The researchers argue that we need more tests like this one, where the AI has to prove its code works in a real, running environment, not just in a textbook example. Until AI can reliably navigate the complex, interconnected city of a game engine, we can't fully trust it to build the complex software systems of our future.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.