Why I'm making my own game engine
building a game engine from scratch is probably one of the most unnecessary things you can do as a game developer, there are already incredibly powerful engines available today.
- you have Unity.
- you have Unreal Engine.
- you have Godot.
you have countless other engines, frameworks, libraries, and tools that can help you create a game without having to implement rendering, physics, asset management, input systems, audio, networking, and everything else yourself.
so why am I building my own? the short answer is simple: I want to.
but the real answer is much more complicated.
I am not building my own engine because I think existing engines are bad, I am not building it because I think I can create something better than Unreal or Unity in every possible way, and I am definitely not building it because I believe that every game developer should make their own engine.
I’m building my own engine because I want to understand the technology behind the games I make, because I want an engine that is designed around my specific needs, and because the process of building the engine itself is part of the experience I want to have as a developer.
this is the story of why I started building my own game engine, what I want it to become, and why I think making games that already “exist” is not necessarily a bad thing.
I don’t want an engine. I want to understand the engine.
when you use a modern game engine, you are standing on top of an enormous amount of technology. you open Unity and you have rendering. you have physics. you have animation. you have audio. you have asset importing. you have serialization. you have networking solutions. you have an editor. you have scripting. you have tools for almost everything. this is fantastic.
it allows developers to focus on making games instead of spending years implementing technology.
but there is a tradeoff, you don’t necessarily understand everything that happens underneath, you might know how to use a Rigidbody without knowing how the physics solver works, you might know how to create a material without understanding how the GPU actually processes the draw calls, you might know how to import a model without understanding how the model is parsed, uploaded to the GPU, and represented in memory.
you can absolutely make great games without knowing these things, in fact, most developers should probably avoid building these systems themselves, but I am not most developers.
I enjoy the technical side of game development because I enjoy looking at a problem and thinking: “how does this actually work?”, that’s the main reason I’m building my own engine, I want to understand the entire stack.
from the moment a player moves the mouse, to the moment a frame appears on the screen, from the moment a model is loaded from disk, to the moment its vertices are processed by the GPU, from a network packet being sent, to an entity being replicated on another machine.
I want to understand those systems.
and building an engine is one of the best ways I know to do that.
why not just use Unreal?
Unreal Engine is an incredible piece of software for hyper realistic games and simulation, etc.
its rendering technology is extremely advanced, its tooling is mature and its ecosystem is massive.
if I wanted to make a high-end commercial game tomorrow, Unreal would be one of the first engines I would consider. so why don’t I just use it?
because my goal isn’t simply to ship a game as quickly as possible, my goal is also to build the technology behind my games.
there is a difference between: “I want to make a game.”
and: “I want to make a game, and I want to understand and control the technology that makes it possible and performant.”
I am interested in the second, Unreal also comes with a lot of things that I don’t necessarily need, my goal is not to build the next Unreal Engine.
I don’t need an enormous editor, I use godot as a editor sometimes with addons that exports to my engine, I don’t need a massive ecosystem, I don’t need hundreds of features that I will never use, I want a focused engine designed around the games I actually want to make.
why not use Unity?
Unity is another obvious choice, it is accessible, flexible, and has a huge amount of documentation and community support, and because I already work with C# and C++/C, it would be a very natural choice.
but again, this isn’t about whether Unity is good or bad, it is about what I want to build, when I use an existing engine, I have to work within its architecture.
I have to adapt my game to the way the engine expects me to build it, that’s completely reasonable, that’s how engines work, but when you build your own engine, you can do the opposite, you can build the engine around the game.
instead of asking:
“how do I make my game work with this engine?”
you can ask:
“what does my game actually need?”
and then build the technology around that answer, that’s a very different way of thinking.
why not use Godot?
Godot is probably one of the most interesting options for someone who wants an open-source engine, and I LOVE IT.
it’s lightweight, it’s accessible, it’s open-source, it has a strong community and it is getting better constantly.
I have nothing against Godot, like I said before I love it
.
in fact, I think Godot is a great choice for many developers, but again, my goal isn’t simply to find an engine, my goal is to learn how to build one, using Godot would solve the problem of needing an engine.
building my own engine solves a different problem, it helps me understand how engines work and automated cool systems like streamlining asset pipelines, multithreading, and a better authoritative multiplayer system.
the engine is part of my education
one of the biggest reasons I am building my engine is because I consider it an ongoing education, game engine development forces you to learn things that you might never encounter when only using high-level tools.
you learn about:
- memory management
- multithreading
- GPU architecture
- graphics APIs
- rendering pipelines
- shaders
- asset pipelines
- serialization
- resource lifetime
- networking
- physics
- collision detection
- data-oriented design
- CPU and GPU synchronization
- caching
- performance profiling
- operating systems
- platform abstraction
every system creates another problem, and every problem teaches you something.
for example, loading a texture isn’t simply:
var texture = LoadTexture("texture.png");
behind that simple call there can be:
File system
Asset database
Import pipeline
Image decoding
CPU memory
GPU resource creation
GPU upload
Resource cache
Reference counting
Lifetime management
suddenly, a simple texture has an entire lifecycle, that’s the kind of thing I want to understand.
I want my engine to be designed for my games
this is probably the most important reason, I don’t want to build a generic engine that tries to solve every possible problem, I want to build an engine that is optimized for the games I want to make.
my interests are mostly around things like:
- open-world games
- survival games
- multiplayer games
- LODs, streaming and multithreading
- low-poly environments
- procedural generation
- physics-heavy gameplay
- large numbers of entities
these requirements influence the architecture.
if I know that I want to build a large open world, I care about streaming. if I want multiplayer, I care about networking and server authority. if I want voxel worlds, I care about chunk management and meshing. if I want thousands of entities, I care about memory layout and update performance. if I want to target multiple platforms, I care about abstraction.
the engine should reflect those requirements, that’s why I don’t want to simply copy an existing engine’s architecture,I want to experiment with my own.
I don’t want to build everything from scratch
there is an important distinction here, building my own engine doesn’t mean I want to reinvent every single piece of software.
I am perfectly comfortable using libraries, like my fork of veldrid, I don’t need to write my own image decoder, stb image is good enough, I don’t need to write my own C# compiler, I don’t need to create every low-level component myself, I want to build the systems that are relevant to my engine architecture.
for example, I might use libraries for:
- window creation
- graphics API bindings
- physics
- image loading
- audio decoding
- model importing
but I can still control how those systems fit together, that’s the important part, my engine is not about refusing to use libraries, it’s about owning the architecture.
why I want a cross-platform renderer
one of my goals is to avoid tying the engine to a single graphics API.
I don’t want the engine to fundamentally depend on DirectX or OpenGL.
I want an abstraction that can potentially support APIs such as:
- Vulkan
- OpenGL
- Direct3D
- Metal, where practical
the goal isn’t to pretend that all graphics APIs are identical, they aren’t, the goal is to create a rendering architecture that allows the engine to use different backends without forcing the entire game to care about which API is running underneath.
the game should think in terms of:
Create Texture
Create Buffer
Create Pipeline
Submit Commands
Present Frame
while the backend handles the details, this is where abstraction becomes useful, not abstraction for the sake of abstraction, abstraction because it gives the engine flexibility.
I want to understand the renderer
graphics programming is one of the biggest reasons I enjoy engine development, there is something fascinating about taking a collection of vertices and eventually turning them into pixels, my engine gives me an opportunity to experiment with rendering techniques directly.
things like:
- Forward rendering
- Forward+
- clustered lighting
- tiled lighting
- shadow mapping
- cascaded shadow maps
- shadow atlases
- instanced rendering
- HDR
- bloom
- SSAO
- GPU resource management
when something goes wrong, I can’t simply assume the engine is broken, I have to investigate.
why is the shadow moving with the camera? why does the normal look incorrect? why is this light disappearing? why is the GPU memory increasing? why are the chunks taking too long to generate?
these problems are frustrating, but they are also how you learn.
the engine is allowed to be bad
my engine is not going to be better than Unreal Engine, not today, probably not ever, at least not in the general sense, and that’s okay, I don’t need it to be, the goal isn’t to win a benchmark against Unreal, the goal is to build something that is useful to me.
if my engine can make my games possible, and if I understand how it works, then it has already succeeded, there will be bugs, there will be terrible architectural decisions, there will be systems that I eventually delete, there will be things I completely rewrite, that’s normal, a game engine is a long-term project, architecture evolves as you learn more.
the engine exists because the games exist
this is an important distinction, I am not building an engine because I woke up one day and decided:
“let’s spend the next ten years writing an engine.”
I have games I want to make, the engine exists because those games require technology, I build the engine, then I build a game, then I discover a problem, then I improve the engine, then I go back to the game.
but isn’t building an engine a waste of time?
this is probably the most common criticism, and honestly? sometimes it is.
if your only goal is to release a game as quickly as possible, building an engine from scratch is usually a terrible idea, you will spend time solving problems that existing engines have already solved, you will spend months implementing systems that could have been available immediately, you might never actually finish the game, that’s a real risk, but “wasting time” depends on what you’re trying to achieve.
if I spend six months building an engine and learn graphics programming, networking, memory management, and multithreading, I don’t consider all of that time wasted, even if the engine is never finished, I gained knowledge, I gained experience, I built something, and I can use that knowledge in future projects.
why make a game that already exists?
another question I get is: “why are you making something like Unturned?” or: “why make a voxel game when Minecraft already exists?” or: “why make another survival game?” this is a fair question, there are already thousands of games,almost every idea has been done before, platformers existed before Mario, first-person shooters existed before Doom, survival games existed before Minecraft, voxel games existed before Minecraft, zombie survival games existed before Unturned, so if we follow this logic, we should never make anything, because everything has already been done, I don’t agree with that.
inspiration is not the same as copying
there is a huge difference between copying a game and being inspired by one, if I make a game inspired by Unturned, that doesn’t mean I want to recreate Unturned exactly.
I might like the idea of:
- a low-poly visual style
- open-world exploration
- survival mechanics
- zombies
- multiplayer
- vehicles
- crafting
- base building
but I might want to change how those systems work, maybe I want a different progression system,maybe I want different physics, maybe I want a different approach to networking, maybe I want more realistic vehicles, maybe I want a completely different world, maybe I want to experiment with mechanics that another game doesn’t have, the inspiration is only the starting point.
every game builds on something
almost every successful game is influenced by something else, Minecraft didn’t invent every survival mechanic, Unturned didn’t invent zombie survival, Fortnite didn’t invent battle royale, Dark Souls didn’t invent difficult action RPGs, Counter-Strike didn’t invent multiplayer shooters.
the industry evolves because developers take existing ideas and combine them in new ways, sometimes they improve them, sometimes they simplify them, sometimes they completely change them, innovation doesn’t always mean inventing something that has never existed, sometimes innovation means taking familiar ideas and combining them in a way that feels different.
I want to make the game I wish existed
this is ultimately the reason, I don’t necessarily want to make a game that nobody has ever seen before, I want to make a game that I personally want to play.
maybe I played a game and thought: “this is great, but I wish it had this.” or: “I like this system, but I would design it differently.” or: “why doesn’t this game have multiplayer?” or: “why does this game handle vehicles like this?” those thoughts are often where game ideas begin, you see something you like, you see something you don’t like, and you imagine your own version, that’s enough of a reason to start.
Unturned is an example
Unturned is a particularly interesting example for me, it is a game with a relatively simple visual style, it doesn’t try to compete with AAA games graphically, but it has a lot of systems working together, survival, inventory, weapons, vehicles, zombies, multiplayer, open worlds, servers, modding, that combination is interesting, I don’t want to make “Unturned 2.”
I don’t own Unturned, I don’t want to replace it, I want to explore the same general space while making my own game, my game will have its own identity, its own architecture, its own mechanics, its own world, its own problems, and hopefully, eventually, its own community.
the goal isn’t to compete with existing games
I don’t expect my game to replace Minecraft, I don’t expect it to replace Unturned, I don’t expect it to replace Rust, I don’t expect it to replace any established game, that’s not the point, there are millions of games because different people want different experiences, someone might prefer Minecraft, someone might prefer Terraria, someone might prefer Unturned, someone might prefer Rust, someone might prefer my game, there is room for all of them, the existence of a successful game doesn’t prevent another developer from making something inspired by the same genre, if anything, successful games prove that there is an audience interested in that type of experience.
making something is more important than having a completely original idea
I think developers sometimes put too much pressure on themselves to invent something completely original, I dot it with a lot of “I need to create something nobody has ever seen”.
we think:
“I need to create something nobody has ever seen.”, that’s an extremely difficult standard, instead, I think it’s more useful to ask: “what can I make that I would genuinely enjoy?”
that’s a much better question, maybe the answer is a survival game, maybe it’s a voxel engine, maybe it’s a multiplayer sandbox, maybe it’s a game inspired by something you played as a kid, that’s okay, the important thing is what you do with the idea.
my engine is also a game development experiment
the engine and the game are not separate experiments, they are connected, if I build a voxel game, I learn about voxel rendering, if I build multiplayer, I learn about networking, if I build vehicles, I learn about physics, if I build an open world, I learn about streaming, if I build procedural terrain, I learn about generation algorithms, every game mechanic becomes an opportunity to improve the engine, and every engine improvement makes the next game easier to build, that’s the long-term vision.
I want to build an engine that grows with me
I don’t expect my engine to be perfect, I expect it to evolve, today, it might have a basic renderer, tomorrow, it might have a more advanced rendering pipeline, today, resources might load synchronously, tomorrow, I might implement asynchronous streaming, today, networking might be basic, tomorrow, it might have client-side prediction and server reconciliation, the engine will change as my understanding changes, that’s part of the process, I am building the engine I need today while trying to create the foundation for the games I want to make tomorrow.
this is a long-term project
I know that building an engine and a game at the same time is difficult.
there is a risk of constantly switching between projects, there is a risk of never finishing anything,that’s something I have to be careful about, the solution isn’t necessarily to stop building the engine, the solution is to keep the scope under control, I don’t need to implement every possible feature, I need to implement the features that actually help me make my games, if I don’t need a feature, I don’t need to build it, if a library solves a problem well, I can use it, if an existing system is good enough, I don’t need to replace it, the goal is not to build everything, the goal is to build what I need.
so, why am I doing this?
because I enjoy it, because I want to learn, because I want to understand the technology behind my games, because I want to experiment, because I want to have control over my architecture, because I want an engine designed around my own requirements, because I want to make games that I personally want to play, and because I think the process itself is valuable, maybe my engine will become something huge, maybe it will stay a personal project, maybe I will use it to make one game, maybe I will use it to make ten, I don’t know, and honestly, that’s okay, the point isn’t to predict exactly where this project will end, the point is to build it.
the final goal
at the end of the day, I am not trying to build the next Unity, I am not trying to build the next Unreal, I am not trying to prove that everyone should make their own engine, I am building my own engine because I want to make my own games, and I want to understand the technology that makes those games possible.
I want an engine that fits my workflow, I want an engine that fits my games, I want an engine that I can change whenever I need to, and most importantly, I want to learn from building it, the same applies to my games, I don’t need to invent an entirely new genre, I don’t need to create something that has never existed, I just need to create something that I believe is worth making.
maybe it is inspired by a game I played years ago, maybe it combines ideas from several different games, maybe it starts as something familiar and eventually becomes something completely different, that’s the fun of development, you start with an idea, you build it, you learn, you change it, you break it, you rebuild it, and eventually, hopefully, you have something that didn’t exist before, that’s why I’m building my own engine, that’s why I’m making my own games, and that’s why I don’t think the existence of another game means I shouldn’t make mine, there is always room for another idea, there is always room for another experiment, and there is always room to build something of your own.