Session 78

Debugging Day

After getting all our triangles on the screen, we did some off-screen refactoring to make it easier to re-use our instanced rendering code for more than just the particletoy tool. Tonight, we walk through our new implementation, which lets us bind our shader attributes dynamically, and requires less boilerplate to get particles on the screen.

However…our refactor wasn’t quite working by stream time, and we spent the remainder of this session debugging our new changes. We stepped through our entire particle rendering code in Chrome’s debugger, and manage to fix a few unrelated bugs on main! But at the end of the stream, we don’t quite have it working.

After recording, we found that this small change to Renderer3D.ts was the fix for ALL the issues we saw in stream Sometimes you get the bear, and sometimes the bear gets you.