I am wondering why casey is using cpp files but writing in a C fashion, (and not just use plain C …
Stupid me. Make another header for custom types - I can swear I had that thought. Thanks. So I gue…
The preprocessor runs independently for each file. Should you have on a single source file, then …
When Casey started separating source code into multiple files, I noticed that handmade.h and handm…
For the record, yes, I usually have bool8, bool16, bool32, bool64. This has nothing to do with an…
To be fair, the only way we'd ever get "meaningful" results is measuring execution time, preferra…
I don't think he was talking about Casey. I think he was talking about a hypothetical novice prog…
Wow,I read this article, trying to keep an open mind but after he called Casey a novice programme…
To get meaningful results you really should compile with optimizations for such tests. The compil…
mmm assembly I guess since eax register is 32 bit, it makes it easier for the compiler than a 8 bi…
Ok, so struct size optimization is one reason to use fixed-size bool. I guess the next question is…
I come from domains without a fixation on (cache-friendly) performance, but . Short version of the…
Thanks I just wanted to be sure I wasn't missing something, also thanks for taking on such a gigan…
I haven't put out the game design publicly, and probably won't. It will continue to be a surprise…
I toyed with this idea but I think it's a better idea to do the opposite, because of the time the…
Would a ground/floor entity be an easy way to get to a nice Z handling system That way an entity w…
I've done some light reading of the forum and the website and I understand the design is final and…
Send Casey some email (casey (at) mollyrocket.com) and he'll sort you out.
Yes, of course. Compiling code is easy (compilers are smart). Reading code is not so. That means m…
Waste is important, but it's not the only issue. There are situations where you'd like to guarant…
As the title suggests I somehow misplaced my unique link. Is there a way to recover it, or would I…
As for knowing sizes I would assume it's more about alignment in structures or array of structure…
If somebody missed, Casey talked about why he uses bool32 not bool in previous episodes: "Bool da…
so he can do mystruct* one = (mystuct*) blah and that chunk will store "one". then he can do more…
She specifically said "no input" and that this includes the time, so I'm guessing that explicitly…
That also sounds like a good argument for "bool8", subject to the usual disclaimer about putting …
Could you elaborate on the reason(s) for this?[/quote] It's so he can add it to the address to ge…
If I haven't missed anything performance was the only reason you gave on the stream when you intr…
Could you elaborate on the reason(s) for this?