Casey fixes this in a later episode. The latest code uses handmade_%random%.pdb
vbo Flyingsand, thanks a lot. Could you please elaborate about using OSAtomic and when I need to …
I´m up to day 23 and everything was working fine for the looping, reloading and playing the users…
Although the footnotes are interesting, may I be so blunt as to remind us all that what is being …
Yes, I believe that Windows has never supported big-endian CPUs, but I could be wrong about that.…
It's the last one - Windows probably doesn't support big endian CPU anymore (because it doesn't n…
On modern Windows you don't need to worry about endianess at all. It is always little endian
I th…
mmozeiko, I think it's not the case. I am only drawing WeirdGradient right now. It's instantaneou…
On modern Windows you don't need to worry about endianess at all. It is always little endian :)
…
Hey guys!
Somewhere around Day 25 of HMH Casey was using win32-defined union called LARGE_INTEGE…
It could be that you simply can not get 16.6 msec with current bitmap drawing code - it is terrib…
Flyingsand, thanks a lot. Could you please elaborate about using OSAtomic and when I need to use …
@Flyingsand, so I've just tried a CPU-melting way for the first time for some reason =) And I am …
So I've actually implemented both of the methods you mention for getting the sound from the game …
Fred —
Simulating rigid body physics on a spherical world accurately is very tricky, unless your objects…
Yeah, this is C++11 thing. If you use member initialiation like this, then C++ compiler generates…
Hey guys!
I am trying to implement sound output using OS X CoreAudio APIs. The problem is that C…
Most likely this is due to http://en.cppreference.com/w/cpp/language/aggregate_initialization
Oops, I actually was setting a value for facingDirection inside the struct declaration itself.
1…
Do you happen to have nested structures inside your Entity? If yes, those will not get nulled rec…
In handmade.cpp
1
2
3
4
5
6
7
8
9
10internal uint32
AddEntity(game_state *GameState)
{
…
Yes, I know about these two options but I do not prefer them. It's very simple to just insert co…
Here's one more trick I often use when debugging with Visual Studio.
If you missed execution of …
In my own experience, preallocation often bought substantial and measurable speed improvements. …
Hello Casey, just watched the 50th episode and saw you debugging a loop and wanted to point out t…
Roger that - we'll try to take care of this on Monday's stream. Somebody remind me in the Q&…
The way I see it, you both suggest a combination of the two strategies. As you both see their lim…
I would love to second this. I just threw the latest code in and my code errors here as well. I c…
Fred —
I'm torn...
Another possibility is that instead of storing world coordinates as int+float, we can…
We already implemented that - that is what the looped live code editing does.
- Casey