C_Worm —
Hi, im working on a 2D shoot'em up map editor and the ground is made up of tiles moving downwards.…
In handmade hero we use PushSize to allocate memory, and if the arena need to grow it will call Vi…
Hi, I have another suggestion that I think would satisfy the requests some people have made about …
By the way, if we end up having an image viewer option for the watch data, I think these two featu…
Thanks Simon, that makes sense. So for a 64byte thing it's quicker just going with HeapAlloc?
Hi, I have a crazy idea. Sometimes you have an array of structs, and want to see which elements of…
Not too specific. This is good stuff, thanks. There are a few other features that would benefit fr…
The underflow and overflow checks are debug things. If you pass those flags, every allocation will…
Hi everyone, I was wanting to dig a bit deeper into memory allocation and wondered if anyone can e…
You could specify memory base, stride, width, height, and choose number and order of channels and …
Version 0.3 changelog:Added support for youtube feeds. Download feed 0.3
Casey is trying/experimenting with things he doesn't know, so don't treat his solution as a perfec…
Basically that inline calculated the whole loop at compile time and replaced with the result? yes,…
da447m —
Thanks for explanation. Basically that inline calculated the whole loop at compile time and replac…
Inlining is about extra optimizations compiler can potentially do. Often that allows to remove lar…
da447m —
if code you call is really performance critical, you actually don't want any call at all, you want…
5 years later, I found this video which I think is incredibly illustrative, basically explaining t…
Terans —
In the code of the PID camera on Day 504 ( ), it seems that Casey is doing an analytic integration…
Theoretically having function in one copy should be faster, because that will use less space in co…
da447m —
OK makes sense. And what about the performance? Would having copies of the same functions be actua…
da447m —
Sry Im dumb and didn't click godbolt, now I just learned that that is actually a block scoped thin…
Think of S in my code example as timed_block. TIMED_BLOCK macro expands to timed_block var(args...…
da447m —
Sure this will happen for void f(), but why would it happen for any of the curly braced TIMED_BLOC…
It's fine to use headers if you want to use headers. There's nothing wrong with it. What I was say…
That's how destructors work - objects that go out of scope call destructor when object is released…
da447m —
First of all you should forget about "header" files or #include's. For compiler they do not exist.…
da447m —
Ok gotcha, thanks Martins. Just having scope closing bracket } will automatically close timed bloc…
That's a mistake in code during editing/refactoring. This macro is not used anymore. Before it had…
Ability or desire to inline function or not compiler decides on its own regardless of inline or st…
da447m —
I'm a bit surprised this thing can be done like in handmade_debug_interface.h, I've never seen thi…