-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Brogue algorithm is something along the lines of: Build the first room (wether it be the standard first floor room, a cave, or a rectangle.) Try 600 random wall spots on each spot try 15 times to build a corridor+room(.8 random chance) or room(forced on last 215 iterations.) That reliably takes three seconds in my code. Whether because I'm bad at this or whatever. changing that to try 1000 wall spots once each cuts the time down to about a half second. That's what this commit does. I'll keep trying to speed up the room and corridor building (those eat up most of the time), but for now this is a significant improvement and the level doesn't really suffer for it.
- Loading branch information
1 parent
d3a0cf1
commit ff64bff
Showing
2 changed files
with
53 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters