No Game Engine Game Dev: Word Sleuth 037: Scheduler refactor leading to bugs

3 months ago
4

Streamed on 2024-08-26 (https://www.twitch.tv/thediscouragerofhesitancy)

Game Engines are for sissies!

Last Thursday I started with the Scheduler refactor to get rid of the std::lists there. The plan was to use a resource pool and requesting a new ActionSequence would just pull one from the pool. That almost worked, but there were some issues. Today we picked up with those issues.

Most of the improvements came in clearing the actions of an ActionSequence before returning the pointer. There was state leaking from previous ActionSequence uses into the newer use. We also did some refactoring around Animations to similarly use a pool and not allocate/delete any animations. This all almost worked, but by the end of the day, there is still an issue where ActionSequences aren't marking themselves as done. This will be where we pick up tomorrow.

Loading comments...