7 mistakes beginners make in game engine

None of these seven mistakes is “you chose the wrong language”. They are all mistakes of sequence — doing a later thing too early, or a foundational thing too late. That is why they are so common: each one feels like progress at the time you make it.

Mistakes one to three: the frame

  1. Stepping the simulation with the render delta. On a fast machine nothing goes wrong, which is exactly why the bug survives until someone with a weaker GPU plays it. Use a fixed step for simulation and let rendering interpolate.
  2. Letting systems call each other in whatever order compiles. The first version works by luck. Once a third system joins, the order becomes implicit knowledge and the symptom is a one-frame delay that is very hard to find. Write the phase order down and keep it in one place.
  3. Reading input directly inside the simulation. It ties a physics decision to a keyboard state that has already changed, and it makes replays and tests impossible. Sample the device once per frame, then let the simulation read a snapshot.

Mistakes four and five: the data

  1. Holding raw pointers to objects that can move. The engine works until something is loaded, unloaded, or reallocated, and then objects point at whatever now occupies that memory. Use handles or stable identifiers for anything that can be destroyed, and dereference through a lookup.
  2. Putting the whole engine into one global manager. It feels efficient for a week. Then the manager owns the clock, the resources, the scene, and the settings, and no system can be tested without constructing the world. Split state only where it already has a natural owner — the frame clock, the resource cache, the scene — and leave the rest alone.

Mistakes six and seven: the project

  1. Building features no game has asked for. A scripting layer, a plugin system, and a scene serialiser are all reasonable, but not before something actually needs them. Every speculative feature is a decision made with the least information you will ever have, and it must be maintained from that day on.
  2. Waiting until the end to profile. Performance is a design property. If you have never measured a frame, you do not know which of your abstractions is cheap and which is a trap, and the answers are rarely the ones intuition suggests. Profile early, then again after every large change.

What the seven have in common

Each one trades a small, visible convenience now for a hidden cost later. The fix is the same in every case: make the invisible thing explicit — the step rate, the frame order, the lifetime of an object, the cost of a system — and the mistake stops being possible to make quietly.

You will still make a few of these. The point is not to avoid them all, but to recognise the shape quickly enough that the repair costs an afternoon rather than a rewrite.