Build time: 19ms
Unity builds have completely changed the way I build C/C++ code.
I can rebuild my entire game faster than I could have rebuilt a single translation unit and link with CMake previously.
Thanks to @cmuratori for showing how to do this in Handmade Hero series!
_brian
808 posts
Meat-coder
- Replying to @BarjiYTNeither look like “magic” Maybe try adding some more noise and breaking up the uniform pattern?
- Here's how I create levels for my game with just code in C twitch.tv/videos/2217408… #gamedev #indiedev #raylib
- Moments like this are why I enjoy programming and game development so much. You put in hours of focused work and these little wins where stuff works make it all worth it!
00:00 - Another inspiration for me making games in C is @jdah__ Here's his current game, where he is writing a doom/quake inspired FPS game, with level editor, in C: youtube.com/watch?v=Kyhrqb…
- Replying to @hot_girl_springInsert a Greek Question Mark: ";" in place of exactly one semicolon
- No scene manager. No memory allocations. No unloading and loading from disk. The time it takes to load a new level in my game is just the time it takes to copy a struct from the level registry to the current level. #gamedevelopment #gamedev #indiedev #noengine #raylib
GIF - Unions can be used any time you want to store multiple data types in a variable They can be extra useful with metadata about the type of information they store This is called a "Tagged Union" Here's an example from my game's animation system that lets me target differentReplying to @AstleDsaI also haven't applied Unions . I don't get their use case
- Replying to @AryvyoPython has better interop with C, so any parts that need to be performance critical can trivially be written in C Probably the main reason it's stuck around to be honest
- Replying to @passle_Funny how the more you over architect something, the more it actually looks like spaghetti
- Replying to @eigentime5454 and @cmuratoriUnity build is a single translation unit build. Mostly relevant to C/C++. Just compile a single file that includes all your files. Compile times are fast because header files don't get compiled over and over. No game engine. Just raylib.com as a starting point.
- Replying to @_brianpmaher and @cmuratori




