AI's role has changed. But how?

Just this summer, I made a blog post about AI’s role in development, and since then things have already changed so much. I want to start by pointing out the obvious: the technology is evolving fast.

AI is everywhere in games. Some developers choose to let it make the creative choices, but it’s been most apparent in programming. After all, the latest models have taken the widest strides in AI programming.

So let’s step back a bit: how has this impacted us?

What AI still is, and isn’t

I started my previous blog post by explaining what AI is and isn’t.

Before I said this:

AI is not a knowledge base like Google or Wikipedia. Instead, it’s a machine model that takes an input (prompt) and spits out an output (content, like more text, code, art, etc). The output is not based on factual information, rather it’s just trying to make it from what it thinks you want from the input. It can be, and will be, wrong… a lot.

I want to make clear that AI still gets things wrong, and when it does, it does so confidently. According to Cubic.dev’s bug bench, the newest AI models are not always the least error-prone compared to ones made just before. Harvard researchers have also found that the bottleneck in development has increasingly shifted towards code review, which implies AI is not net-reducing the work as much as developers believe it to be doing.

Considering that AI is non-deterministic, it’s worth noting that it’s not the same in-and-out process every time. You can ask it to do the same thing 10 times, and it will do it differently every time. This also means that the first time you ask it to do something is not usually the best solution.

I also previously mentioned that AI is not at a senior-level. I still believe this to be true, but there is some nuance to this perception.

How I use AI has changed

Just earlier this year, I made it very clear that most of my code was non-AI. Of course it was. The only thing it was good for was repetitive, boring, and boilerplate tasks. But let’s not kid ourselves, this has changed a lot.

I still don’t think it’s ready to take over a project, and for ethical reasons, I don’t think it should (which I will go into more shortly). However, more of my code is written with AI than without lately. As models have improved, it’s become increasingly helpful and consistent with the way I write code.

Like I mentioned, it’s not at a senior level. But it can sure mimic it.

I’ve recently created a knowledge base of markdown files for AI to store dos and don’ts, particularly relating to programming patterns and levels of control. My knowledge base also has some explainers on how certain game design decisions for certain projects influence technical decisions. With all of this deeply personal and intimate understanding of my code, AI has become a lot better at writing just like me. It’s a bit spooky.

Generally, I still have a lot of oversight over AI. I must be realistic and understand that it’s always going to make mistakes, and when it makes a mistake is unpredictable.

When giving AI work, I make sure to make the technical decisions first. The design decisions on the codebase should be my own so that I retain control over it. Additionally, I always request it to stop at every step so I can review changes in small chunks so that I don’t miss mistakes, and so that I can commit in smaller parts.

A recent example is how I’ve been making gameplay content at my job. As models have evolved, I have handed more gameplay work to AI. I still take over as needed, but I’ve been able to get more done with the same amount of effort. Recently, I designed a way to spectate players that required me to make some technical decisions. However, after I made those technical decisions, AI was able to take over quite well.

A better example is a first-person shooter framework I’m working on. I started this project by recoding an old framework with an AI pass. To do so, I gave it the old codebase, the reasons why that codebase is bad, and what new technical decisions I’d like to. At first, AI tried to take too much control, and it ended up making some decisions in the codebase that I didn’t like. So, I treated AI as a means to iterate, giving feedback about composability, structure, and conventions. With such feedback, it corrected the behavior and updated my knowledge base.

You really don’t need to keep up with whatever the best model is either. Like I mentioned in my last post, every week somebody claims “AGI is here” and that some new model changes EVERYTHING! The fact of the matter is that any modern flagship model will do just fine. It’s true that new models are better, but it’s so incremental that it’s not worth draining your wallet to get tiny improvements.

I limit AI’s impact on creative parts

I treat game development as a creative and artistic job. It’s very disrespectful to the craft to hand AI control over creativity.

Practically speaking, AI is not good at creative thinking. This is why, for example, AI-generated websites seem to all look similar. Or why all AI-generated images have the yellow piss filter. Or why AI models have strange topology decisions. Need I go on?

However, there is a really cool tool out there that’s good for creativity: the human brain!

Creativity exists because of how we think. Like AI, we’re non-deterministic, but we sure have a lot of juice given to us by nature to come up with both horrible and fantastic ideas. Inherently, because we think in different and branching ways, we’re always coming up with interesting ideas.

AI converges on a common average. While different versions of models can adjust how much “thought” or “effort” is put into a task, this stays true in some form. It means that it’s not often attempting to think outside of the box on it’s own.

So if you want a practical reason for why I don’t like AI being involved in creative work, it’s because it sucks. I will always prefer to hand creative work to talented humans that are built for it.

Frontend code is creative work

Frontend code implies that you’re programming for what the player sees. Assuming you want to be intentional about it, what the player sees affects their emotions and thoughts about their gameplay and environment.

I don’t think it’s really worth talking about the smallest parts of frontend. I more so mean big picture, or the whole of parts. Frontend by AI always has an “AI-feel”, mostly because of the similar patterns and missing imperfections.

At the end of the day, the balance of AI and non-AI frontend code is important to keep in mind. Using AI definitely does give an advantage over slow human thinking, but you don’t want to cut out the human thinking that makes frontend so fun.

After all, cool frontend is made impressive because a human made it. When somebody learns something is created entirely with AI, it immediately becomes less impressive.

But yeah, using AI is efficient

Like, super efficient. Lately I’ve been getting things done faster because of how I’ve learned to work with the tech. It’s incredibly good at removing the longest parts of programming and shortening them down to more of your judgements in action.

Consider a situation in which you are doing LiveOps for a game. You want to implement tons of cosmetic assets from human artists into the game, but doing so is just repetitive and boring. To be honest, AI is just really good at working on this stuff way faster than you could ever do it.

Not just that, but because AI is better at steering differently based on a knowledge base, you can spend less time fixing what it makes. This means development timelines are cut down by a lot, and you focus more on what matters.

Beginners still have to learn

The reason I am able to work with AI so efficiently and with a low number of mistakes is because I have made so many technical decisions myself. Because I am good at my job, AI can also be good at my job.

If you’re anything less than experienced at programming, just know that it is worth learning still. Programming skills apply in the most random situations, and often what you learn can impact how scalable, readable, and clean your codebase is.

Frequently, I find myself running into bugs or design problems that AI seems so terrible at solving. Because of my technical knowledge, I’m able to steer it in the right direction.

The ethical slippery slope

I want to preface that everything I said before about efficiency is still true, but it’s not the entire story. As models evolve, we think less about what it’s doing and more about how it impacts teams and the industry. Should we really be putting efficiency above all? And at what cost?

For one, giving AI too much control can really hurt the morale of a team. Nobody competent will feel like they belong in an environment that races to chase them out. It is worth considering that every decision done by AI is taking another decision away from a human. After all, games still are a human craft.

More importantly, consider the long-term of what using AI looks like. Do you want to live in a world in which you made yourself irrelevant? Such efficiency gains come at the cost of hurting your team, company, and the industry. It’s worth considering your role in this mindfuck.

What you choose is part of a collective, not just individual. As such, your choices matter and it impacts the viability of AI. The more viable an AI is, the more it can work to replace humanity in any given task. This is done over time: as more seniors adopt AI, so do more novices… as we lose the value of learning the skill, we also lose knowledge of programming at an individual level. This is because seniors set hiring bars, teach juniors, and etc.

You also should want to develop a healthy work culture. Should you create an environment that puts efficiency and speed above all, or would you rather foster one that encourages thought and intention?

Where you choose to put yourself on the ethical spectrum is different per-person. However, it’s worth understanding that your choices have an impact on the way the rest of your team works, and that just because you believe the efficiency gains are worth it, does not mean others agree. After all, you would be taking away their work.

So… be nuanced, please

I’m so tired of everybody having some extreme, non-nuanced opinion that treats AI as either all good or all bad. Own the design and technical decisions, and make the creative calls. Give AI control in parts that don’t ruin what game development is.

Be real with yourself: is anything in life all good or all bad? Rarely so.

Remember that decisions always have knock-on effects. This goes for anything in life, but AI’s involvement in a project makes this especially true.

Some of my points from my last post still stand, such as how I feel about the AI bro culture and how AI can be used for learning. If you’re looking to see how I feel about that, it’s worth a read.

To all my fellow employers: keep your humans. They’re worth more in the long-term than you think. Enforcing AI usage is always a bad idea because it implies a lack of understanding in what AI is for. I still hear about employers requiring a certain amount of AI usage on a project, and I find this to be harmful in so many ways.

We all play games to have fun and enjoy it as an art form. Consider the impact your AI usage has on that.