Yes. You're right. This is about handmade hero. However I thought it could be interesting to deba…
If I had penny every time people say this about their "optimized" code... You should really write…
I forgot to mention that the original implementation worked well on the i7, under win7. (IF I did…
Ben —
It's supposed to make things faster. Although, C++ compilers take significantly longer than C comp…
Ben —
Some people avoid typedef struct in C because it pollutes the namespace. OP: by 'modern' ANSI C do…
Ben —
LCTHW is supposedly full of bugs. I recommend C Programming: A Modern Approach.
Ben —
BTW, xcb is autogenerated from protocol definitions. Also, it only applies to X. If you use waylan…
In games it's pretty typical for nearly all strings to fall into two broad categories, both of whi…
Unfortunately I do not actually have a copy of Photoshop so I don't know. I use GIMP to load the …
what ?! Is Ads Considered a good thing ? I see of ads company as the most greedy annoying irritati…
I'm trying to get Photoshop to output 32-bit A8R8G8B8 bitmaps with no success basically I have an …
Thanks, I have learned how to do it the C++ and not the C way. I didn't know this.
You can write such code ONLY if Sprite is C struct, not C++ class (or more accurately - structure…
So I guess I can't mix them? I don't even know if I am... chunkOfMemory = new char[1024*9000]; spr…
What? new and malloc doesn't create any smart pointer. Just a regular C++ or C pointer which you n…
Grr so when I do a new or alloc or malloc or whatever, it marks it as a "smart" pointer. So someho…
I don't know if this has been covered yet. Since I am only at episode 10 it could most probably ha…
Send an e-mail to Casey (casey (at) mollyrocket.com), he'll help you get your download link.
Hi guys, I purchased the game several months ago and I wanted to download the recent code again bu…
That could mean your other threads were waiting on some resource (mutex, critical section, etc..)…
Hi, I just watched epsiode 80 and wanted to outline my assumption of the "sword collision bug". On…
Yes. That is correct. however, if I try to use 100%, nothing is gained. And thats why I posted th…
Hi, I've knocked up a quick interactive thingie to demonstrate my proposal for a visual effect for…
The number is correct. Your code uses 50% of logical CPU cores. Using 8 cores still makes sense be…
Thanks. But are you saying that the 50% reported is thus wrong? (That they really utilize 100%) Or…
Most likely you have quad-code CPU with Hyper-Threading enabled in BIOS. That's why 4 threads uses…
If you are interested, I'd like you to write code that does the following, on 1, 4 and 8 threads: …
Well the first question should be why do you need to allocate persistent string at all? If you rea…
I am fairly new to c++, having worked on c# for at least 5 years. i tried making a function that r…