Evaluating AI Coding Ability and Cost Through a Tiny 3D Browser Game
A small 3D game that runs in a browser shows what AI-assisted coding can produce, but a convincing demo does not prove that large games can be built cheaply. This article explains why file size, a single successful run, and visual quality are weak evidence of capability. It also outlines a fairer way to test AI coding: define acceptance criteria, score quality across several dimensions, measure results over repeated runs, and calculate the total cost per qualified delivery.
1. The Real Question Is Not How Impressive the Demo Looks
A tiny 3D game that runs directly in a browser often explains progress in AI-assisted programming better than complex performance leaderboards. The scene can be explored, the lighting creates depth, interactions respond to input, and the code can still be modified.
However, moving from “the demo looks good” to “large games can now be built at low cost” involves a clear logical leap.
First, visual quality is only one dimension of software quality. A deliverable game also needs stable input handling, reliable collision detection, sound resource management, cross-device adaptation, and a code structure that can be maintained over time.
Second, demo file size does not equal the full cost of running it. If the file loads external scripts, textures, audio, or other assets at runtime, the data a user actually downloads can exceed the size of the file itself.
Finally, a single successful case does not represent stable capability. The same task can produce noticeably different results under different runtime conditions and resource budgets.
A more reasonable starting point for evaluating AI-assisted programming is this: under clearly defined constraints, how high is the success rate, how much human intervention is needed, and what is the total cost of delivering software that meets the acceptance requirements?
2. Why Small 3D Games Can Show Rich Visuals
1. Replacing Large Static Assets with Generation Rules
Traditional 3D projects usually store models, textures, animations, and sound. These assets can contain a lot of detail, but they also increase download size.
Small demos often use procedural generation. Instead of storing the complete result, they store the method for generating it.
For example, a corridor can be built from repeated wall, floor, and light pieces. Color variation on a wall can come from a noise function. Fog and lighting changes can be calculated at runtime.
This is like replacing “store the appearance of every brick” with “store the rules for building a brick wall.”
When a scene has strong regularity, this approach can significantly reduce asset size. However, it does not mean complex content can be compressed without limit. Detailed characters, unique buildings, long dialogue, and large sets of animation still require corresponding data or generation cost.
2. Using Visual Cues to Create Realism
How realistic a picture looks depends on more than the number of models. Light and shadow, material roughness, perspective, occlusion, fog, and motion feedback all shape perception.
A limited scene that stays consistent in these areas can create a strong sense of immersion:
- Light direction matches changes in surface brightness.
- Objects that touch surfaces have appropriate shadows or ambient occlusion.
- Distant objects lose contrast as distance increases.
- Materials show moderate variation in color and roughness.
- Camera movement, hit feedback, and sound stay synchronized.
These techniques raise the visual return on each unit of resources. However, they cannot automatically prove full physical accuracy or meet the overall production standard of a large commercial game.
3. Limited Scope Reduces System Complexity
Small levels can usually limit the visible area, interactive objects, and movement range.
A narrow corridor reduces the number of objects visible at once. A fixed play area simplifies collision calculations. A few enemies and interaction mechanics keep state management manageable.
So the value of a small demo is that it shows certain combinations of capabilities are feasible. It does not show that all the difficult parts of a complex project have been solved.
3. What Work AI Coding Actually Performs
In a 3D interactive prototype, AI coding can help with requirement breakdown, program structure design, graphics calculations, input handling, bug fixing, and performance tuning.
The change worth watching is that development is shifting from “generate a piece of code” toward “iterate over multiple rounds around a goal.”
A reasonably complete process includes:
- Turning natural-language requirements into a checkable feature list.
- Building a minimal scene that runs.
- Adding camera control, movement, and interaction.
- Observing runtime errors and visual anomalies.
- Revising the implementation and verifying it again.
- Adjusting visual quality within the performance budget.
- Organizing the code, documentation, and delivery materials.
However, the generated code alone cannot confirm these steps. Code that can be explained is not the same as code that runs. A run without errors also does not mean that gameplay and visuals meet the requirements.
In particular, problems such as clipping, camera jitter, and input lag often require real runtime testing, image inspection, and human play-testing to judge.
Therefore, evaluations should clearly distinguish three capabilities: the ability to propose a solution, the ability to generate an implementation, and the ability to converge on a correct result through verification.
4. How to Design a Fair and Reproducible Capability Test
1. Rewriting Vague Goals as Acceptance Criteria
“Make a visually stunning game” works as a creative starting point, but it is not a rigorous evaluation standard.
A better task description should specify:
- Scene scope and main interactions.
- Control methods for desktop and touchscreen devices.
- Whether network access is allowed.
- Whether external assets are allowed.
- How file size is counted.
- Target devices and runtime environment.
- Functional checks that must pass.
- Limits on time, call costs, and human intervention.
For example, “a single-file delivery that runs offline” and “network loading of assets is allowed” are two different engineering tasks. Their file sizes should not be compared directly.
2. Scoring Visuals, Function, and Engineering Quality Separately
At minimum, establish the following evaluation dimensions:
| Dimension | Core Checks |
|---|---|
| Functional completeness | Whether movement, camera control, interaction, and start and end flows work correctly |
| Visual consistency | Whether lighting, materials, spatial scale, and feedback are coordinated |
| Runtime performance | Frame time, loading time, memory use, and input responsiveness |
| Compatibility | Behavior across different screens, input methods, and devices |
| Engineering quality | Structural clarity, maintainability, error handling, and dependency management |
| Delivery completeness | Whether it includes run instructions, limitation notes, and necessary resources |
This avoids a common mistake: using screenshots to stand in for an evaluation of the entire software.
3. Measuring Stability Across Multiple Runs
A single best result is easily affected by randomness, task selection, and manual fixes.
A more reliable method uses a set of tasks with similar difficulty but different content. Record whether each run completes, the cause of any failure, the number of fixes, and the human effort involved. Reports should include the best result, typical results, and failures.
For businesses, reliably completing routine tasks often matters more than occasionally producing an impressive work.
5. Performance Optimization Should Not Rely on Average Frame Rate Alone
Whether a 3D interactive application feels smooth depends not only on average frame rate but also on how stable frame times are.
If most frames refresh quickly but a noticeable stall appears every so often, users still feel the experience is not smooth. Testing should therefore observe typical frame time, high-percentile frame time, and changes over long runs.
At 60 frames per second, each frame has about 16.7 milliseconds. That budget covers the entire frame: input handling, state updates, render submission, and related computation. It is not reserved for any single task.
Common optimization directions include:
- Reusing geometry and materials to avoid creating duplicate resources.
- Reducing unnecessary draw calls.
- Controlling the cost of transparency, dynamic shadows, and full-screen effects.
- Avoiding frequent temporary object allocation in high-frequency loops.
- Reducing updates or rendering for objects outside the view.
- Lowering resolution or effect complexity based on device performance.
These measures should be guided by measurement results. Cutting effects without analysis may lose visual quality without addressing the real bottleneck.
6. How to Calculate the Real Cost-Effectiveness of AI Coding
1. Model Call Fees Are Only Part of Total Cost
Total cost for one task can be organized as:
Total cost = model call fees + execution and verification costs + human review costs + rework costs + necessary deployment and maintenance costs.
Avoid double counting these items. For example, if the time a person spends debugging errors is already counted under review costs, it should not be counted again in full under rework costs.
For demo projects, call fees may be the most visible cost. For software used over a long period, human review, maintenance, and defect fixing are often more important.
2. Running Automatically for Hours Does Not Necessarily Mean High Efficiency
Running for several hours may mean the system completed a lot of useful work, or it may mean it repeatedly tried low-value changes.
Similarly, the total amount of text processed does not directly equal the amount of effective code produced. Multiple rounds of iteration may repeatedly read existing content, and different billing systems handle input, output, and repeated content differently.
Therefore, any cost conclusion needs a stated measurement basis: which stages were counted, whether failed attempts were included, whether verification resources were included, and whether human intervention was counted.
A single cost figure without these conditions cannot be used directly for purchasing decisions.
3. Measuring Return on Investment by Qualified Deliveries
A practical metric is:
Average cost per qualified del
