Working on horrific mobile games | low level game engine dev | https://xitter.cf/t.co/gd9FXV9F7w | he/him | 🌐 🇪🇺 🇷🇴 🇬🇧

Joined February 2013
I just published my first article on @handmade_net on how to write better (game) libraries. Thanks to @cmuratori and everyone else for the feedback. Check out the article here: handmade.network/wiki/7138-h…
7
6
4
71
Does any AI agent tool like @opencode have a way to do a "partial compact"? Agent does task 1 from a todolist, I test it and it's buggy so we talk to fix it. I would like to continue task 2 in the same convo and compact just the portion of the chat about fixing the task 1 code.
1
1
1
298
Best approximations I can think of now: 1. undo the chat but not the code 2. tell the llm you had to make some fixes and describe them briefly 3. continue with task 2 You could also use separate agents for the task with an md for context sharing between agents I suppose.
1
134
Been watching the development of this game on youtube for almost a decade, so cool to see it realized now
1
261
Introducing: Order of the Sinking Star, coming to PC in 2026! Experience this massive narrative puzzle adventure featuring more than one thousand hand-crafted puzzles that will put your intellect to the test 🧩 Wishlist Now on Steam > bit.ly/4pu8nDG #TheGameAwards #VideoGames
26
120
19
1,203
69,076
Blog post: Bypassing the branch predictor In this post I talk about what you can do when the branch predictor is optimizing a code path that is not performance-critical, instead of one that is, and thus *pessimizing* your program instead of *optimizing* it.
1
4
1
44
3,523
Blog post: Getting rid of unwanted branches with __builtin_unreachable() In this post I describe a way of exploiting input constraints with __builtin_unreachable(), with the goal of eliminating unwanted code paths and reducing the machine code size of specific functions.
1
3
2
7
1,558
This seems fine to me, weird how many people hate it. I prefer having a single return at the end, tho one exception I sometimes make is for preconditions where i just have an if statement at the very start that returns.
Replying to @rfleury
The reason I prefer this over early returns is because I can guarantee that each top-level scope in the function is hit for all cases. I can always set breakpoints and reliably know they'll be hit. I can add universal features for all calls, even if they don't hit all branches.
1
327
After many years I finally got iOS development working well thru cmake. I hope to do a writeup on this soon because it's so useful for game devs who wanna use C++ and target multiple platforms including mobile.
5
257
One thing I like about C/C++ is that there is a much nicer middle ground. I use plenty of libraries made by other people and they help tremendously, but there's like 20-30 of them not millions, way less noise and complications that way.
1
5
457
Hi @Dark_Somnium, I sent you a dm on twitter, check it out when you can.
1
230
Two-faced PS5, anyone? 🔴⚫️ @ColorWare will give 1 random person who follows and RTs this tweet a PS5 slim in whatever colors they want for free! Good luck 😈
1,033
13,010
424
20,974
1,626,004
I’m going to do a 🧵 about making retro-style games in C/C++, and also about getting them to run in a browser.
12
93
11
715
81,847
Related: a common way to take a desktop screenshot from Win32 apps is to send the Print Screen key, wait a bit, read the buffer. This is even documented on MSDN: learn.microsoft.com/en-us/wi…
TIL: This is how Unreal prevents the screen saver from showing up.
2
13
1
118
28,386
The whole unity drama might turn out to be a positive if we see a revival of small handmade indie game engines.
This Post is from an account that no longer exists. Learn more
1
9
529
I approve of Unity trying to revive handmade engines youtu.be/LlPOn0nAOeo
1
5
377
More reasons to admire Bun
7
530
This Post is from an account that no longer exists. Learn more
2
8
676