At this point, what optimizations you make is going to depend on usage. A list holding integers …
malloc does 16 byte alignmentAs I said earlier, modern versions of malloc align allocations by 16 …
Your pdb for executable is fine, because it shows Line 944 for DoNextWorkEntry function. Line numb…
Another quick update - I haven't settled on how I'll write the GUI stuff yet, though for now I've…
Hello guys, Hope it's alright to ask this kind of question here. I've recently moved to another ma…
So here's a little update on my progress so far. The main bit of optimization I've done is to make…
rcast(float32, rcast(int32, myFloat32)) under the original C definition will not preserve the flo…
Wow. I just rewatched the video again, and at 43:00 I noticed that Casey does not have anything f…
Oh, I see what is the issue - CS_HREDRAW and CS_VREDRAW flags for WNDCLASS style member. These fla…
DefWindowProc doesn't return until resize/move operation is done. That means your game code in Wi…
Okay, that's good to hear. Yea, must be some strange bug. I'm on Windows 10, so I thought maybe th…
On Windows moving or resizing window happens inside internal modal loop: DefWindowProc doesn't re…
ratchetfreak, reinterpret_cast cannot be done from int to float (and back). One of types must be p…
I don't think that this is a problem with the code. The same thing had me confused but when I copi…
Hi everyone, I'm current on Day 4 and I ran into an issue. Sorry if I am posting in the wrong foru…
The trick is this is an engine, where users can create their own objects, so there is not a finite…
i am not sure you understand the point of reinterpret_cast (or the problem this is trying to solv…
i am not sure you understand the point of reinterpret_cast (or the problem this is trying to solv…
For rcast you could do something like ((t)((void*)(&(v)))) it only works on lvalues but makes sure…
Debugging is half of the fun :)
Actually, the rules for things like selecting proper articles or suffixes in English, or any spoke…
I found a bug in CTIME, which only hits when you run ctime -stats on a .ctm file on which a single…
Since clang/gcc like to complain about c style casting at the highest warning levels I have these …
Hah, good to know, sorry for the noise. I could not find a search function to see if this was disc…
There is OSX port available here: It's mentioned in comments for gist from Casey:
Apologies if this has been posted before. I just wanted to share the code for making Casey's CTIME…
bytesToWrite is initialized like this so it should not matter.you can check bytesWritten to make …
To create a new command: // definition COMMAND(do_something) { // code } [/code] If you need to…
I like the function signature macro which I learned from Casey's Working on The Witness blog serie…