Optimization: Overview
Procedural dungeon generation offers incredible flexibility and replayability, but generating complex layouts at runtime can sometimes impact performance. DunGen provides several built-in features and supports integrations to help you manage the performance cost and ensure a smooth player experience.
This section covers key techniques for optimizing your DunGen-powered levels:
-
Built-in Culling: Learn about DunGen's simple adjacency-based culling system, designed primarily for first-person interior environments. Understand its two modes (
BasicandMulti-Cam) and their trade-offs for hiding unseen rooms. -
Tile Pooling: Discover how to use object pooling for your Tile prefabs. This can significantly reduce generation times caused by frequent instantiation and destruction of complex Tile GameObjects.
Choosing the right optimization strategies depends on your game's specific requirements, target platform, and the complexity of your generated dungeons. Review the pages in this section to determine which techniques will provide the most benefit for your project.