is presently its sole maintainer,
You can support him:
Recap and set the stage for the day
Run the game and hit an assertion
handmade_world_mode.cpp: Turn off FillGroundChunk
Run the game and note the lack of sprite sorting
handmade_world_mode.cpp: Turn FillGroundChunk back on and note that we need some room in which to do the sorting
Debugger: Step into AllocateRenderGroup
handmade.cpp: Increase the amount of memory allocated to this TranState
Debugger: Step into BeginRender and inspect Work->Task->Arena
handmade_world_mode.cpp: Make RenderGroup use 512KB
Blackboard: Render Sorting
Blackboard: Sort buffer
Blackboard: Producing the sort key
"For the love of god, Mischief" (!quote 343)
handmade_render_group.cpp: Consider how to sort
handmade_render_group.cpp: Find the PushBufferOffset for each Entry in RenderGroupToOutput, and make the function take SortEntryCount and *SortEntries
Blackboard: How we're currently rendering the screen
Consider how best to do this sort
handmade_render_group.h: Add u32 SortEntryAt to render_group
handmade_render_group.cpp: Set that SortEntryAt in AllocateRenderGroup and use it in PushRenderElement_
Blackboard: Pushing entries on from the top and sorts on from the bottom
handmade_render_group.cpp: Implement these pushes, and make PushRenderElement_ take r32 SortKey
handmade_render_group.cpp: Clean up compile errors and propagate the SortKey
Run the game and see that it isn't quite right
handmade_render_group.cpp: Reverse the sorting order
Run the game and see that it is now correct
Blackboard: The Clear was happening last, after rendering everything
handmade_render_group.cpp: Introduce SortEntries
Blackboard: Bubble Sort
handmade_render_group.cpp: Implement SortEntries as a Bubble Sort
Run the game and see that it might actually be right
handmade_world_mode.cpp: Give the GroundBuffer some zBias
handmade_world_mode.cpp: Turn off the GroundBuffer for now
Run the game and see that the sorting is working properly
handmade_world_mode.cpp: Increase the zBias and then apply the bias in the correct place
Run the game and see that it all works correctly now (apart from the torso being in front all the time)
Danyguag Q: Do you know the Vulkan release date?
insobot Q: Well?
grimjoey Q: Can you talk about pros and cons of heapsort and quicksort, and / or explain quaternions?
evraire Q: Which sort are you planning to ultimately replace bubble sort with?
Miblo Q: Bubble Sort is the simplest sort? I worked my way to doing a Selection Sort in my practices, so assume that must be down there for simplicity
quikligames Q: n^2 is actually faster in most cases?
angus_holder Q: Can't you just use binary insertion to put items into their correct position so the array is sorted the whole time? That way RenderGroupToOutput doesn't have to do anything
Blackboard: Sorting After vs Sorting During
TheLagScript Q: Have you ever made something of this sort of a project before? When you stream, do you just do everything as you go, sort of "improv" coding, or do you do stuff off stream to prepare what you are actually going to code on stream?
CFlickster Q: Are we going raid Shawn McGrath's stream tomorrow night after this one?
slashac Q: How do you disable syntax highlight in Emacs while keeping comment and macro highlighted?
TheLagScript Q: Is your Visual Studio "custom" theme anywhere? I really like it
Wrap it up
Shout out to HandmadeDev, who are building a community site for projects like Handmade Hero, with nicer forums