What Is a Build System and Why Do I Need it? But I am Dumb - Game Engine ep. #5

  Рет қаралды 5,446

Code Gains

Code Gains

Күн бұрын

Пікірлер: 27
@rileyhawksworth8362
@rileyhawksworth8362 6 ай бұрын
I'm back from a previous episode. I remember commenting about my interest in creating my own game engine. I followed through with it and I have a GitHub for it. Development is slow though and it is in a very early state. I only started it 2 weeks ago. As a challenge I'm using Vulkan for rendering.
@Code_Gains
@Code_Gains 6 ай бұрын
Good luck!!
@rileyhawksworth8362
@rileyhawksworth8362 6 ай бұрын
Thanks! Good luck too!
@weiSane
@weiSane Ай бұрын
And this is why we thank c++ for being so messy and fragmented with its tool chain that newer better languages could learn from its mistakes.
@thomasp9511
@thomasp9511 8 ай бұрын
knowledge acquired (IQ inceased +1 total 69)
@python_n_c
@python_n_c 7 ай бұрын
Subscribed because you use C++. Cool project!
@NexusGamingRadical
@NexusGamingRadical 7 ай бұрын
I never thought to cook my spaghetti code, good thinking!
@rordo.
@rordo. 8 ай бұрын
Excited to see where this goes next!
@dontuo
@dontuo 7 ай бұрын
It's cool that you finally chose the build system. But I'm interested in one question. Will you make the engine cross-platform? (at least for linux and windows)
@Code_Gains
@Code_Gains 7 ай бұрын
Yeah. I have plans for Vulkan in the future once the core architecture settles a bit. The plan is to make some sort of preprocessor code that would allow to compile for all platforms.
@dontuo
@dontuo 7 ай бұрын
​@@Code_Gains cool😎
@dontknow7863
@dontknow7863 8 ай бұрын
💪
@Benjaneb
@Benjaneb 8 ай бұрын
8:40 I see a lot of people write code like this, having a pretty much empty main function that just calls another function. I usually think it looks stupid but is there actually a good reason to do it? Did you do it because you know you want other code around the editor?
@Code_Gains
@Code_Gains 8 ай бұрын
I don't think there are any hard set rules for this (because the program won't run faster or better), but for me If I have a project and see the main function I want to immediately understand what the entire application does and in this case it runs the editor (this is opposed to reading that messy code to understand that this is the editor).
@scrapmine
@scrapmine 8 ай бұрын
I know that with rust it reduces build times by a significant about, might be the same for other languages.
@Benjaneb
@Benjaneb 8 ай бұрын
@@scrapmine Build time would only be reduced if the code is separated out into another compilation unit (i.e. another file) and that unit is already compiled and you haven't made any changes to it, so if that's the piece of code you're actually working on it would do nothing to build time.
@thundertastic896
@thundertastic896 7 ай бұрын
The cherno video he referenced touches a bit on this but it's a combination of DX ergonomics when debugging & having the ability to restart your whole editor "view" without closing your application process completely (which may be a hard requirement for certain features).
@DeuxisWasTaken
@DeuxisWasTaken 8 ай бұрын
dx11?? but why tho edit: ok I saw the explanation in #0, doing it just to learn because it's beginner-friendly is probably the only sensible reason to use it. It's a shame that by choosing it you've immediately committed to the engine being Windows-only and kinda outdated from the get-go, but it's better than trying to start with Vulkan and then giving up because it's too hard.
@scrapmine
@scrapmine 8 ай бұрын
dxvk and proton exists.
@DeuxisWasTaken
@DeuxisWasTaken 7 ай бұрын
@@scrapmine yeah, and they're translation layers that introduce overhead and bug surface just to run an outdated (by 8+ years at this point) graphics API meant for Windows by design. It's awesome that they exist and have gotten to the point of working (pretty) well; it's understandable when people fall back to relying on them due to learning or severe time/budget/workforce constraints, but using them is still quite a bit worse than developing for native support using the modern multiplatform API that is Vulkan.
@scrapmine
@scrapmine 7 ай бұрын
@@DeuxisWasTakenRunning dx11 games in proton gives near native performance for many games.
@DeuxisWasTaken
@DeuxisWasTaken 7 ай бұрын
@@scrapmine many, not all, and that's only because the wine/proton people poured sweat and tears implementing it. "Performance in best case scenario" isn't all there is. Besides, I've seen that some games run faster on Proton than on Windows. That's not due to Proton being magic but due to the linux kernel, drivers and whatnot being more optimised enough to offset the overhead brought about by Proton. Running natively they'd get even better performance.
@_starfarer
@_starfarer 7 ай бұрын
Vulkan only opens up the possibility for running on Linux which doesn't expand the userbase much at all. It might be a good idea compared to DX12, but it's not worth the headaches caused if it's unnecessary.
@tutacat
@tutacat 7 ай бұрын
visual studio is literally just an editor. it doesnt do anything except integrate.
@Ytsf123
@Ytsf123 8 ай бұрын
Nerd
@Alguem387
@Alguem387 7 ай бұрын
build.ps1 > build systems
Creating a Basic Terrain But I am Dumb
12:19
Code Gains
Рет қаралды 931
Something Strange Happens When You Take This To Its Logical Conclusion
32:44
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,8 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Projects Every Programmer Should Try
16:58
ThePrimeTime
Рет қаралды 497 М.
EVERYTHING takes longer than it seems
22:17
The Cherno
Рет қаралды 33 М.
How I learned to love build systems
16:31
fasterthanlime
Рет қаралды 132 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel (kiwi)
Рет қаралды 209 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1 МЛН
Why Most Programmers DON'T Last
18:56
Thriving Technologist
Рет қаралды 312 М.
Why My Game Engine Sucks and How Will I Fix It?
7:30
Code Gains
Рет қаралды 2,3 М.
I ACCIDENTALLY Created Hazel's Greatest Feature
18:21
The Cherno
Рет қаралды 39 М.
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,8 МЛН