Post #1944161
2026-03-02 21:19 UTC
@jcoglan @nicuveo and all of this bloat matters!
This isn’t even about hot loops; more about general bloat. The Game Boy has a very limited number of cycles available each frame – around 10 000 instructions. That’s it. So bloating the code by a factor 10 for no reasons will make you hit the frame budget _very_ quickly.
Replies (1)
-
@pmorinerie@mastodon.xyz 2026-03-02 21:21
@jcoglan @nicuveo So, from the point of view of an experienced assembly developer on the Game Boy, C is an absolute waste. Bloated, slow, with leaky abstractions. Maybe useful in a handful of cases though – like a one-shot large function, out of any critical path, with a lot of maths. Someone used it to generate a maze. But of course the actual gameplay code is assembly.