Game developer interview questions and how to answer them
Game developer interview questions test the core of real-time programming: how the game loop and frame budget work, the 3D math behind movement, cameras and collision, performance at the level of memory and cache, and how gameplay systems such as state machines, AI and networking are built. Most studios add a portfolio review and a programming test, often a take-home in C++ or the studio's engine. The strongest candidates explain trade-offs in milliseconds per frame and show playable work.
By Evin JohnPublished 8 min read
What game programmers do, and what studios hire for
Game programming covers several specialties. Gameplay programmers build what the player touches: movement, combat, abilities, cameras and UI logic, usually in close loops with designers. Engine and systems programmers work on rendering, physics, memory, streaming and tools. Network programmers keep multiplayer games consistent across unreliable connections. Tools programmers make the editors and pipelines content creators use every day. Smaller studios want generalists; larger ones hire for one specialty and test it deeply. Interview loops reflect which of these the role is.
- C++ competence for most console and PC studios, with C# common for teams on some engines and in mobile work.
- Math intuition: being able to sketch vectors on a whiteboard and reason about angles, distances and transforms.
- Frame-time awareness: every feature has a cost against a fixed budget, and you check it.
- Collaboration with designers and artists, including saying what is feasible without killing the idea.
- Shipped or playable work: game jams, mods, student projects or released titles.
How game developer interviews are usually structured
- Portfolio and résumé screenA recruiter or lead looks at your projects. Short videos and a link to a build help; source code on a public repository helps more.
- Programming testOften a take-home lasting a few hours to a few days: implement a small mechanic, fix bugs in a provided project, or answer C++ and math questions in writing.
- Technical interviewsC++ and memory, math at a whiteboard, data structures, and a walk through your test submission with questions about choices you made.
- Systems or design discussionDesign an inventory, a save system, an ability framework or enemy AI, with attention to data, performance and designer workflow.
- Team fitConversations with producers, designers and leads about iteration, feedback and working through milestones.
The game loop and frame budget
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Walk me through one frame of a game from input to present. | Engine architecture | Poll input, update game logic, step physics, run animation, cull and build draw lists, submit to the GPU, present, with the order mattering |
| Why use a fixed timestep for physics? | Stability and determinism | Consistent results regardless of frame rate, avoiding tunneling and explosions at low frame rates, with an accumulator and interpolation for rendering |
| What is delta time, and what goes wrong if you forget it? | Frame-rate independence | Movement speed would tie to frame rate. Also mention clamping huge deltas after a hitch |
| At 60 frames per second you have roughly 16.7 ms per frame. How do you budget it? | Performance planning | Split across systems, keep headroom, and know that CPU and GPU work overlap in a pipelined frame |
| How would you implement pause, slow motion and a game that keeps UI animating while paused? | Time scaling | Separate game time from real time and let each system choose which clock it follows |
| What causes a frame hitch, and how do you hunt one down? | Profiling | Spikes from allocation, loading on the main thread, garbage, shader compilation or a slow query; capture the bad frame in a profiler |
const double dt = 1.0 / 60.0; // simulation step in seconds
double accumulator = 0.0;
double previous = now();
while (running) {
double current = now();
double frame = std::min(current - previous, 0.25); // avoid a spiral after a long stall
previous = current;
accumulator += frame;
processInput();
while (accumulator >= dt) {
saveState(); // keep the previous state for interpolation
simulate(dt);
accumulator -= dt;
}
double alpha = accumulator / dt; // how far between two simulation states
render(alpha); // blend previous and current state
}3D math questions
- How do you tell whether an enemy is in front of the player? Take the dot product of the player's forward vector and the normalized direction to the enemy; a positive result means in front, and comparing with the cosine of half the view angle gives a vision cone.
- What does the cross product give you, and where is it used? A vector perpendicular to both inputs, used for surface normals, building a camera basis and telling left from right.
- Why do engines use quaternions for rotation? They avoid gimbal lock, interpolate smoothly with slerp and are compact. Be ready to explain gimbal lock with Euler angles in simple terms.
- In what order do you multiply scale, rotation and translation matrices? Scale, then rotate, then translate for a typical object transform, and know how your engine's convention orders the multiplication.
- How do you move an object smoothly toward a target? Linear interpolation, or a frame-rate-independent exponential smoothing; note that a fixed lerp factor per frame changes with frame rate.
- Check whether a ray hits a sphere. Project the sphere center onto the ray and compare the distance with the radius, handling the case where the sphere is behind the origin.
- How do you test two axis-aligned boxes for overlap? They overlap only if their ranges overlap on every axis.
Performance and memory
| Question | What it tests | What a strong answer shows |
|---|---|---|
| The game runs at 40 frames per second. Where do you start? | Diagnosis | Find out whether the CPU or GPU is the bottleneck with a profiler, then the most expensive system, before changing anything |
| Why does data layout matter for performance? | Cache awareness | Contiguous arrays of the data a system needs keep the cache full; scattered objects and pointer chasing cause misses |
| What is an entity component system, and why do some engines use one? | Data-oriented design | Entities are IDs, components are plain data, systems process components in bulk, which suits the cache and parallel work |
| Why avoid allocating memory during gameplay? | Allocation cost | Allocation time, fragmentation and hitches; use pools, per-frame linear allocators and preallocation at level load |
| How do you reduce draw calls? | Rendering cost | Batching, instancing, texture atlases, merging static meshes and culling what the camera cannot see |
| What is level of detail, and what other ways do you keep a big world fast? | Scalability | Simpler meshes at distance, impostors, streaming chunks in and out, and spatial partitioning for queries |
| How do you spread work across CPU cores? | Parallelism | A job system with small tasks and clear dependencies, avoiding shared mutable state on the main thread |
Gameplay systems and AI
- Design the player character controller for a platformer. States, input buffering, coyote time, ground detection and how designers tune values without code changes.
- Finite state machine or behavior tree for enemy AI? State machines for few, clear states; behavior trees when behaviors are many and designers need to compose them.
- **Explain A* and how you would make it cheaper.** Cost so far plus a heuristic, a navigation mesh instead of a fine grid, path caching and spreading searches over frames.
- How would you build a save system? Serialize only the state that matters, version the format, write to a temporary file and swap so a crash does not corrupt the save.
- How do you make a third-person camera that does not clip through walls? A spring arm with a collision probe, smoothing, and rules for when to cut instead of glide.
- How do you make systems data-driven? Designers edit values and content in data assets or tables, and code reads them, so tuning does not wait for a programmer.
Multiplayer and networking
- Why are most competitive games server-authoritative? It limits cheating, since the server decides outcomes and clients only send inputs.
- How does client-side prediction work? The client applies its own inputs immediately, then reconciles when the server's authoritative state arrives, replaying unacknowledged inputs.
- What is lag compensation? The server rewinds other players to where the shooter saw them when checking a hit.
- When would you use deterministic lockstep? Strategy games with many units, where sending inputs is cheaper than sending state, at the cost of strict determinism across machines.
C++ questions studios ask
- What does a virtual function cost? An indirect call through a table, possible cache misses and lost inlining, which matters in hot loops over many objects.
- When would you use a unique pointer, a shared pointer or a raw pointer? Ownership clarity first; many engines also use handles or IDs instead of pointers for objects that can be destroyed.
- What is undefined behavior you have hit in practice? Reading uninitialized memory, use after free or out-of-bounds writes, and the tools that caught them.
- How would you write a simple object pool? A preallocated array, a free list and handles that detect stale references.
Fictional example
- In our student team's arena game, frame rate dropped badly when more than about fifty enemies were on screen. I captured a frame in the profiler and saw the CPU was the bottleneck, mostly in the enemy update. Each enemy searched the full enemy list to avoid crowding its neighbors, which grows with the square of the count. I added a uniform grid, so each enemy only checked nearby cells, and moved the enemy data into arrays the update could walk in order. The update cost dropped to a small fraction of what it was and we could run several times as many enemies at a steady frame rate. I learned to profile before guessing; my first guess had been the rendering.
Portfolio and team questions
- What is the feature you are proudest of, and what would you change in it now?
- Tell me about a time a designer asked for something you thought was too expensive. Show you offered a cheaper version that kept the feel.
- How do you handle feedback from a playtest that contradicts your own view?
- What game have you played recently, and how would you have built one of its systems? Pick a specific mechanic and explain the likely data and code behind it.
Story-based questions follow the behavioral question guide. If the studio works in Unity, the Unity developer guide covers engine-specific questions; many studios also ship on phones, which the mobile developer guide touches on from the app side.
How to prepare
- Polish one playable project and record a short video of it. Be ready to open the code and explain any part.
- Drill the math with pen and paper: dot and cross products, a ray-sphere test, a box overlap test and transforming a point by a matrix.
- Write a fixed-timestep loop and an object pool from memory in C++.
- Profile something you built, fix one bottleneck and note the before and after frame times.
- Practice a systems design prompt such as an inventory or ability system, talking through data, performance and designer workflow.
- Treat the take-home seriously: read the brief twice, keep scope small and finished, and write a short readme explaining trade-offs.
Explaining a vector problem out loud is harder than solving it on paper. Natively is an AI interview assistant for Mac and Windows; in a mock technical round it transcribes what you say on your computer, so you can read back whether your explanation of a dot product or a fixed timestep actually made sense. It can also read a math or C++ question from a screenshot during practice and propose an approach, and it keeps the transcript and notes for your next session.
Questions people ask
What questions are asked in a game developer interview?
Questions about the game loop and frame budget, 3D math such as dot products and quaternions, CPU and memory performance, gameplay systems and AI, multiplayer networking, C++, and a walk through your portfolio or programming test.
What math do I need for a game programming interview?
Vectors, dot and cross products, matrices and transform order, quaternions and why they avoid gimbal lock, interpolation, and simple intersection tests such as ray-sphere and box overlap.
Do game studios give programming tests?
Many do, often a take-home that asks you to build a small mechanic or fix bugs in a provided project, followed by a review of your submission in a later interview.
How do I answer a game performance question?
Start by finding whether the CPU or GPU is the bottleneck with a profiler, identify the most expensive system, fix it, and quote the frame time before and after.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
