JAMER: Project-Level Code Framework Dataset and Benchmark on Professional Game Engines

Jianwen Sun, Chuanhao Li, Zizhen Li, Yukang Feng, Fanrui Zhang, Yifei Huang, Yu Dai, Kaipeng ZhangarXiv 2026

TL;DR

This paper introduces JamSet and JamBench, the first project-level game code framework dataset and benchmark built on a professional game engine (Godot). By leveraging open-source Game Jam submissions and a novel deterministic runtime evaluation pipeline, the authors expose a severe "capability cliff" in frontier LLMs and code agents when handling complex, multi-file game architectures.

What Problem Does This Paper Address?

While AI has made massive strides in generating game assets (like textures) and simple web-based 2D games, project-level code engineering on professional game engines remains a major challenge.

Evaluating game code is notoriously difficult because games are context-dependent; you can't simply verify correctness using traditional input-output unit tests. Existing evaluation methods either rely on expensive, non-scalable handwritten test scripts or subjective, non-reproducible LLM/VLM scoring. Without a scalable, deterministic way to evaluate game code, it has been impossible to filter out the high level of noise in open-source repositories to curate high-quality training datasets.

Research landscape and the proposed solution using Godot.

Methods

The authors bridge this gap by leveraging the Godot engine, chosen for its fully text-based project format (making scenes and scripts human-readable plain text) and its headless execution mode. They designed a four-level deterministic verification pipeline:

  1. L1 (File Integrity): Verifies project structure, targets Godot 4.x, and ensures all referenced scripts/scenes are reachable.
  2. L2 (Compilation Correctness): Runs headless compilation to catch syntax and type errors while checking for essential game loop patterns.
  3. L3a (Runtime Stability): Launches the game headlessly for 30 seconds without inputs to ensure it doesn't crash on startup.
  4. L3b (Runtime Behavior Collection): Uses an LLM-generated configuration to automatically inject deterministic input sequences for 60 seconds, recording multi-dimensional behavioral data (e.g., nodes added/removed, position changes, velocity).

To evaluate code quality beyond mere compilation, they introduce two new metrics:

  • Structural Completeness Score (SCS): Measures static structural coverage (script, scene, function, and node counts) against human baselines.
  • Behavioral Alignment Score (BAS): Measures how closely the runtime behavior of the AI-generated game matches real human projects.
Overview of the data collection, filtering, and evaluation pipeline.

Datasets

The authors crawled over 240,000 repositories from GitHub and major Game Jam platforms (like Ludum Dare and itch.io). Due to missing files or compilation crashes, 96% of open-source candidates were filtered out, leaving 8,133 verified projects.

  • JamSet: Comprises 7,833 projects reverse-engineered into multi-turn dialogue data for Supervised Fine-Tuning (SFT).
  • JamBench: A benchmark subset of 300 manually verified projects, split evenly into Small, Medium, and Large tiers based on code lines. It evaluates two core tasks: theme-driven generation from scratch (Task 1) and multi-granularity code completion (Task 2).
Analysis of engine usage, code size vs. quality, and genre distribution.

Key Insights and Ideas

  • The "Capability Cliff": LLMs perform decently on small projects but experience a massive performance drop as project scale and architectural complexity increase.
  • Agents Fix Syntax, Not Architecture: While Code Agents (like Claude Code) significantly boost compilation pass rates by iteratively debugging syntax errors, they provide virtually no improvement in structural completeness (SCS) or runtime behavior (BAS). They excel at building a "runnable shell" but struggle with actual game logic.
  • The Granularity Paradox: Counter-intuitively, script-level completion (deleting 30-50% of entire files) yields higher compilation pass rates than function-level completion. Function-level completion demands strict contextual precision to match existing interfaces, whereas script-level completion allows the LLM to rewrite code with its own internally consistent logic.
  • The Engineering Paradigm Gap: Model-generated projects exhibit a systematic gap from human engineering practices. Humans use abstract interfaces (input actions) and autoload scripts for global state management; LLMs tend to hardcode key events into single scripts. Fine-tuning on JamSet successfully guides models toward human-like engineering paradigms.

Key Results

  • Scale Bottleneck: On function-level code completion (Task 2a), runtime pass rates for top models plummeted from 80.4% on small projects to just 5.7% on large ones.
  • Agent Performance: In Medium-tier script completion, Claude's baseline runtime stability pass rate rose from 62% to 76% when paired with an agent framework, but its BAS remained virtually unchanged (0.51 vs 0.52).
  • Fine-Tuning Impact: Fine-tuning Qwen3.5-27B on JamSet drastically improved its human-like engineering practices: abstract input action usage rose from 0.08 to 3.44, and autoload script usage jumped from 55.1% to 77.1%.

Limitations and Future Work

The current dataset is strictly limited to 2D games within the Godot engine, leaving dominant commercial engines like Unity and Unreal Engine unexplored. Additionally, the benchmark focuses purely on code frameworks, ignoring the subjective quality of art and audio assets.

Moving forward, the authors plan to expand the dataset's boundaries to other engines, augment data scale by repairing projects that initially failed verification, and train a domain-specific expert model dedicated to game engineering.

Summary updated

BibTeX
@misc{sun2026jamer,
  author = {Jianwen Sun and Chuanhao Li and Zizhen Li and Yukang Feng and Fanrui Zhang and Yifei Huang and Yu Dai and Kaipeng Zhang},
  title = {{JAMER: Project-Level Code Framework Dataset and Benchmark on Professional Game Engines}},
  year = {2026},
  eprint = {2606.19830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.19830},
}
Figure