Product Diaryby Remnant Security

Butcher Bay Finds More Lights and Stops Freezing on Load

Product Diary2 min readGames

A fix to the optional shadow lighting finds more lights in the Mac game, and a one-number change stopped levels freezing while loading.

Two fixes landed in the Mac version of Escape from Butcher Bay. Choosing a level from the menu used to freeze the game partway through loading, and it now loads and keeps drawing. The optional extra shadows also found more of the game's lights than before, though I can't yet say the shadows look right everywhere.

The freeze came down to one number. The game's simulated worker threads each get a slice of a 64 MB memory pool for their stacks, and I had allowed 32 of them. That is 16 MB of stacks, and the level load couldn't get the memory it needed. When a stack couldn't be allocated, the code silently ran the work inline and then waited forever on itself. Bisecting the parked work pointed at that one macro. Back at 8, the game held 59.9 to 60.0 frames a second through the level switch. Raising the cap needs a bigger pool or smaller stacks, not a bigger number.

The light fix was a decoding mistake. The game hands light positions to the renderer through small vertex programs, and my detector misread one source selector and rejected another valid one. I made it decode the way the shader translator does and added a focused test. In a Corporate Office entry view, the earlier run found no local lights and the fixed one found five candidates, four of them used. That is a detector seeing more, not proof the positions are correct. I also changed how scene geometry is fingerprinted for reuse, and I haven't measured what that costs.

The arrival view with ray-traced shadows bypassed, composited and the difference amplified

The arrival view on 28 November 2026: shadows bypassed, composited, and the difference amplified. The title overlay is part of the capture.

In that arrival frame, 3.4 percent of pixels changed by more than six levels in at least one channel. Frame rate fell to between 0 and 20 during captures while other work ran on the Mac, so I am making no performance claim. The level sweep script now waits for the map to become active before capturing, because my 27 November count of 33 lit levels could include frames from the wrong map. Treat that count as a lead. The 27 November entry has the earlier context.

Keep reading