What happened

This project focused on building a small atlas demonstrating game development techniques through procedurally generated towns. The core challenge was creating visually interesting towns while maintaining 60fps performance in a web browser.

The team implemented a small procedural building system, drawing inspiration from Hudson's procedural generation techniques, to add diversity to the town buildings. This involved a custom C lib using the Kaigen engine as a headless C lib for map application. The team achieved smooth 60fps in the browser, even with the night mode activated, through careful optimization and LODs implemented for the terrain mesh. The visual touches on each town's shape reflect the technique being showcased.

Why it matters

This project demonstrates a practical approach to creating engaging game dev content – not just a demo, but a genuinely useful tool.

It highlights the importance of visual detail and procedural generation in creating immersive environments. Furthermore, the focus on performance optimization and using a modern web framework like Svelte demonstrates best practices for web game development. The decision to use Svelte for its shallow routing and UI capabilities was a deliberate choice to streamline the development process.

But, but, but…

The claim of achieving 60fps on the web with this system is potentially inflated without independent replication. While the team invested significant effort in optimization, the specifics of the town generation algorithm and the Kaigen engine’s performance characteristics haven’t been fully disclosed.

It's possible that the 60fps is only achieved under specific conditions or with a simplified town design. The reliance on Hudson-inspired techniques introduces a degree of complexity that could impact performance, particularly on lower-end hardware. This also risks conflating a single, optimized outcome with broader, more variable results.

“it took me several iterations to reach smooth 60fps in the browser, especially with the night mode ( try it! )”
— Dr Non

The counter-take

The assumption that achieving 60fps in a web browser is a universally attainable goal is demonstrably false. The team’s accomplishment of achieving a consistent 60fps with the night mode enabled is not a universally achievable feat, given the myriad factors that can impact performance in web browsers.

The AI angle

The adoption of procedural generation and asset streaming technologies allows developers to create infinitely diverse game worlds, offering scalability and reducing the need for manually crafted content. This represents a significant upgrade over traditional level design methodologies, potentially leading to asymmetrical benefits for developers who embrace these tools.