Check connectivity the moment the terrain is generated?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
Zireael
Archmage
Posts: 449
Joined: Tue Jun 18, 2013 7:24 pm

Check connectivity the moment the terrain is generated?

#1 Post by Zireael »

Currently, as evidenced by the te4log.txt, connectivity is checked at the end of zone creation - after all entities are resolved. Therefore I get piles upon piles of resolver entries in log only to find a "level unconnected" line later and another pile of resolvers for the next attempt... until it finally connects. Especially egregious if using cavern generator.

A better way to do so - and speed up dungeon generation noticeably in case of multiple tries - would be to check entrance to exit connectivity after terrain is generated and before generating all the other entities.

Zireael
Archmage
Posts: 449
Joined: Tue Jun 18, 2013 7:24 pm

Re: Check connectivity the moment the terrain is generated?

#2 Post by Zireael »

DG, you have mail :)
I *think* it makes the level generation a little bit faster, too (it took me 39 tries when testing and did not look slower than ~10 tries with old code).
The log was 107 KB for 39 tries while it would be 400 KB+ for ~10 tries with old code.
Also, tried and tested in Veins (mod.class.Zone :P)

Post Reply