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  — 2 years, 6 months

I'm torn... Another possibility is that instead of storing world coordinates as int+float, we can…
Casey Muratori  — 2 years, 6 months

We already implemented that - that is what the looped live code editing does. - Casey

The reason is because I am not a game designer, so I don't want to bring game design into the pro…

I'm pretty sure any hardware from at least last 10 years will allow to set vsync. As for waiting…

Here's my take: It's simply not feasible to have a discussion with hundreds of people, especiall…

mallardz: Doesn't this ignore the time taken to process Win32DisplayBufferInWindow? (currently j…

Towards the end of our loop: we test the time taken since LastCounter sleep the remaining ti…

ZenSoturi: I almost decided not to respond because I smelled stench of internet arguments. Apolo…

sol_hsa: One thing I'd like to point out about all these calculations.. You're assuming audio pl…

One thing I'd like to point out about all these calculations.. You're assuming audio plays at ex…

I actually think that audio hardware doesn't play any role on this latency issue (on Windows OS).…
Lenny  — 2 years, 6 months

Would it be helpful to record keyboard input to a file so that we can replay it later to reproduc…

Flyingsand, thanks for mach_wait_until(), I missed it for some reason. I am using plain usleep ri…

So I'm watching the YouTube archive to catch up, just got past Ep18 and have come across the same…

Rising priority will help only if our application is missing target frame time because of other a…

I've been wondering about this too, and came across the same info on thread priority. I briefly t…

Once you've saved a script, go to Plugins > NppExec > Advanced Options At the bottom left,…

This topic is gold. Thank you guys. But just one more thing, using NppExec how can I map combo …

Sorry, I'm not sure what to recommend to learn SSE. I'm pretty sure Casey will go into SSE2 topic…