Bridgebourn · published
Happy spooky season, treasure hunters.
After reworking some systems to leverage multi-threading, I added a new feature I've been eyeing for a while now, and some other loading time improvements. This patch brings them to the demo.
The Feature
Generating the navigation meshes (used for path-finding) took about 0.5-1.5 seconds, so regenerating them after a destroying an obstacle wasn't an option due to frame drops. So, I simply didn't add these obstacles to the nav-mesh. This lead to spazzy path-finding, and limited game design. But after the rework, I can generate the nav-meshes on another thread without causes frame dips, live! So now, the nav-meshes regenerate as needed, and the game will add/close off paths as obstacles change.
Other Improvements
Faster area loading by asynchronously generating the nav-meshes and other optimizations. I measured about 1.2x faster on my device
Faster boot-up time by asynchronously loading sounds. I measured 1.82x faster
Various bug fixes
As always, let me know if you run into issues in the demo as I keep developing the post-demo content.
Happy treasure hunting!