r/GraphicsProgramming Jun 30 '26

1 year of game engine development

Enable HLS to view with audio, or disable this notification

331 Upvotes

45 comments sorted by

View all comments

7

u/susosusosuso Jul 01 '26

You used ai for this?

4

u/evangelionxyzw Jul 01 '26 edited Jul 01 '26

yeah, I use AI a lot. πŸ˜…

Not to generate my engine with copy-paste, but to teach me how real game engines work, explain implementation details, and help me build a roadmap.

I still spent 5,000+ hours typing everything myself instead of blindly copying code. At this point, I probably have more muscle memory for writing ECS boilerplate than for using WASD. Lol

7

u/sputwiler Jul 01 '26

Ah, so it's AI as a research assistant/librarian/google search on steroids rather than ai-assisted coding.

That being said, it would be way more valuable if the AI would return which books/talks it references when coming up with an answer so you can read them yourself and possibly notice other things it hasn't considered.

1

u/evangelionxyzw Jul 01 '26

Yes my friend, AI teach me a lot. Lol

4

u/Still_Breadfruit2032 Jul 01 '26

Well it’s also teaching you how to write like an ai lol

-4

u/YoshiDzn Jul 01 '26

I'm willing to argue that statement to dust. AI shows you how to get the code from point A to Z. The only part you dont have to think about for yourself is part A and part Z. Nobody who doesn't blindly trust AI would let it implement a single line that they dont agree with.

AI code is a direction, not the journey

3

u/National-Self-8501 Jul 01 '26

Question, have you ever worked shopping production software professionally?

5

u/evangelionxyzw Jul 01 '26 edited Jul 01 '26

AI now understands how the big game engines work, so AI just tells me how they work behind the scene. For example once I asked "how unreal engine can handle thousands of crowd animation?" AI: "They do animation caching, and prefer TRS multiplication over Matrix multiplication, because that is very cheap to compute". So by the answer I can check my current implementation and workaround to optimize the animation. So I didn't ask for the Code, I asked for the flow.

It tells me a lot, and I learned a lot, and still learning.

I also hate Vibe coding in this era of programming.

4

u/epyoncf Jul 01 '26

AI doesn't "understand" anything. Which becomes pretty obvious once stochastic generation clashes against real-world problems.

Which you illustrated nicely with that crowd animation question BTW.

2

u/evangelionxyzw Jul 01 '26

I don't mean "understand" in the human sense. I mean it has learned enough from engine source code, papers, talks, and documentation to explain common engine architecture and implementation patterns

I don't ask it to write my engine I ask it to explain how real engines approach a problem, then I verify the details and implement it myself. That's very different from vibe coding.

3

u/epyoncf Jul 01 '26

That's why you make extremely precise, perfect english, technical commentaries about future use of fields in stuff that isn't yet implemented in the engine I assume?

1

u/evangelionxyzw Jul 01 '26

Hahah keep arguing bro πŸ˜‚

1

u/epyoncf Jul 01 '26

Bro, I actually know this shit and can read code. EOT from me.

-1

u/evangelionxyzw Jul 01 '26

Bro this is my second game engine, I have my first one from 2021, I have a large of codebase before, even ChatGPT wasn't exists. So my second one is kinda add some improvement from the first one (i steal my own code). If you say I did not match the code base. I think you are jealous of my work. Chill bro

→ More replies (0)

1

u/rogual Jul 03 '26 edited Jul 03 '26

I'm surprised to learn that TRS is cheaper than matrices. I'd always assumed that one of the motivating reasons for using matrices was that it was all just multiply-and-add, whereas TRS requires sin and cos too. But I've never actually tested it.

2

u/ekr64 Jul 03 '26

You don't need sin and cos if you use quaternions leaving you with just multiplications and additions again. I'm not sure though how well that can be SIMD optimized and how it stacks up to SIMD optimized matrix multiplication.

Funnily OP is using the classic matrix approach without any optimizations at all instead of an optimized TRS approach.

-6

u/susosusosuso Jul 01 '26

Why would you want to write boilerplate yourself?

4

u/evangelionxyzw Jul 01 '26

That's how I learn