r/GraphicsProgramming • • Nov 03 '26

Question How can one understand how game engines work and how they are written?

Hi everyone. I’m new to programming, and I’ve set myself a goal: to build my own game engine and understand how it works. The most advanced thing I’ve built so far is a simple quadratic equation calculator in C#. And yes, I want to build this engine in C# as well. Is this the right programming language to choose—or is it perhaps too difficult for a beginner like me? How exactly should I go about learning how an engine works? Through books, websites, or videos? I’m not really sure... Or am I looking into something that’s still too advanced for me at this stage?

4 Upvotes

6 comments sorted by

8

u/bg_gamer Nov 03 '26

Game Engine Architecture by Jason Gregory

This is one of the best resource out there.

3

u/icpooreman 29d ago

Is this the right programming language to choose

Ehhhh, C/C++ is the right language to choose haha. The reason I say that is your vulkan libs, windowing libs, audio libs etc are made to work with C and if you don't choose C you get the joy of dealing with that.

That said, the thing you'll hopefully learn is most work belongs on the GPU. So that's why you'll see real engines written in all sorts of slow CPU languages. You can get away with it if all the CPU language is for is setting up the GPU.

I actually started out and I was really familiar with C# from my webdev days and like 5 months in rewrote everything in C.

2

u/dobkeratops Nov 03 '26

c# is used in gamedev alot but
most engines are written in C++ (and the unity games that use C# are ontop of a C++ core)
unless you have a really good reason to use something else... go with C++

1

u/cybereality Nov 03 '26

The Google Filiment framework is well documented

1

u/rez3vil 26d ago

I started watching this series for understanding the same, hope it helps you too.

https://www.youtube.com/watch?v=JtZ53XtLjCc&list=PLdEgIOpXtE-s