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 https://github.com/jeffanddom/manchester/pull/72/commits/de43913582858641ea0a3e362850a091e88749cc. Sometimes you get the bear, and sometimes the bear gets you.

Notes/highlights