We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Handmade Network»Feed
C_Worm
Hi, im working on a 2D shoot'em up map editor and the ground is made up of tiles moving downwards.…
»
Simon Anciaux
In handmade hero we use PushSize to allocate memory, and if the arena need to grow it will call Vi…
»
Opoiregwfetags
Hi, I have another suggestion that I think would satisfy the requests some people have made about …
»
Opoiregwfetags
By the way, if we end up having an image viewer option for the watch data, I think these two featu…
»
Oliver Marsh
Thanks Simon, that makes sense. So for a 64byte thing it's quicker just going with HeapAlloc?
»
Opoiregwfetags
Hi, I have a crazy idea. Sometimes you have an array of structs, and want to see which elements of…
»
x13pixels
Not too specific. This is good stuff, thanks. There are a few other features that would benefit fr…
»
Simon Anciaux
The underflow and overflow checks are debug things. If you pass those flags, every allocation will…
»
Oliver Marsh
Hi everyone, I was wanting to dig a bit deeper into memory allocation and wondered if anyone can e…
»
Opoiregwfetags
You could specify memory base, stride, width, height, and choose number and order of channels and …
»
Simon Anciaux
Version 0.3 changelog:Added support for youtube feeds. Download feed 0.3
»
Simon Anciaux
Casey is trying/experimenting with things he doesn't know, so don't treat his solution as a perfec…
»
Mārtiņš Možeiko
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…
»
Mārtiņš Možeiko
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…
»
n00bmind
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…
»
Mārtiņš Možeiko
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…
»
Mārtiņš Možeiko
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…
»
Mārtiņš Možeiko
It's fine to use headers if you want to use headers. There's nothing wrong with it. What I was say…
»
Mārtiņš Možeiko
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…
»
Mārtiņš Možeiko
That's a mistake in code during editing/refactoring. This macro is not used anymore. Before it had…
»
Mārtiņš Možeiko
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…
»