You would do it like this:
1
2
3
4
5
6
7
8
9
10
11#if COMPILER_MSVC
#define GET_CYCLE_CO…
Thank you for this thread, Jez! Perhaps the #include line was too obvious for the internet to men…
I would prefer that BEGIN_TIMED_BLOCK, END_TIMED_BLOCK and END_TIMED_BLOCK_COUNTED macros would b…
In this case inlining is not the problem in a sense that it "replicates" function body. Compiler …
Jez —
Hi Casey,
Would it be possible to get you to make a couple of updates to your codebase for those…
Not sure if this is relevant or if it explains the reason
"The problem with inline functions is …
You don't need to worry about folder where live-editing loop files are stored. Casey wrote code f…
Trevor —
That fixed it!! Thanks!
I dont know why I changed it. Dident casey say at a later episode that w…
How are you running executable? From Visual Studio? Have you set correct current working director…
Trevor —
Hey everyone,
Is there something im missing when is comes to loading BMPs?
From what I can get …
When you write C code like "a = b * c" compiler will convert that to multiply instruction. There …
If you have use for IPP then sure, use it. But for fairly simply stuff like what we see and will …
Hello everyone,
do anyone have any say about IPP? how does it stands up to just coding your own c…
As I understand it is a CPU instruction that you can run instead of several other (more simple) o…
Yeah Photoshop is not the best program for this. I followed this video and it worked for me: http…
elle —
You need to search for the "vcvarsall.bat" file and run that in the command prompt to setup the "…
Andy —
Ignore this, Casey addresses it a few minutes later lol.
Andy —
Hi all,
So I had a quick question as I'm getting some strange behaviour. Ever since the PatBlt …
David —
I'm into video 11, and have been both coding and building the program with Visual Studios which i…
Thanks again guys, totally worked and great tips.
insanoflex512 I think its because its expecting the class name to be in ANSI, but when you have t…
Justin —
I think the reason is that, since its the Unicode that messed it up, remember the function you ar…
Oh, that's interesting, I quickly created an x64 config and that seems to have worked. Except no…
It triggers right after stepping out of RegisterClassA(&WindowClass).
This is the callstack:…
This code does not trigger breakpoint for me. Not in 32-bit, not in 64-bit mode.
What place does …
Sorry, it wouldn't let me attach apparently.
Here it is:
1
2
3
4
5
6
7
8
9
10…
You have not added cpp file.
Hey gang,
I'm loving this series, I'm a game designer who has decided to get his hands dirty (soo…
elle —
Thank you. I managed to get it working, it was due to an issue with the bridging header between o…
clang also has __rdtsc() available from x86intrin.h header.
Actual clang intrinsic is __builtin_…