Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Doors and walls: worth it?  (Read 1966 times)

blue sam3

  • Bay Watcher
    • View Profile
Re: Doors and walls: worth it?
« Reply #15 on: July 12, 2011, 09:54:30 am »

Also, back when there was the economy, 2-tile rooms were the best possible option, which is impossible without walls (at least that's how I played).

Actually, those rooms were 2 walkable tiles + 9 wall tiles + 1 door.  If you hit - you could actually shrink the room farther (and have a 1 walkable tile bedroom with only a bed in it).

And if you really wanted to make it cheap, it was better to put a whole load of beds in a room together, all overlapping each other. Bottomed the value right down.
Logged

oneguy

  • Bay Watcher
    • View Profile
Re: Doors and walls: worth it?
« Reply #16 on: July 12, 2011, 11:47:29 pm »

Without walls, it's not a fort, it's a settlement :P

My understanding was that the more paths a given dwarf has between point A and B, the longer the pathing algorithm takes. So the ideal fort in terms of fps efficiency would have exactly one path from any one single spot to any other.

ya, but that would mean that every dwarf would then bump into every other dwarf regardless of were they are going
Logged

Ruirize

  • Escaped Lunatic
    • View Profile
    • 2DCraft - A free 2D clone of Minecraft!
Re: Doors and walls: worth it?
« Reply #17 on: July 13, 2011, 08:43:09 am »

Without walls, it's not a fort, it's a settlement :P

My understanding was that the more paths a given dwarf has between point A and B, the longer the pathing algorithm takes. So the ideal fort in terms of fps efficiency would have exactly one path from any one single spot to any other.

In some cases, this is true.

It is A* pathfinding nature to head directly to a target, and only spread out the search when an obstical has been hit. (Not the way it's programmed, I know)
There can be any number of paths, but A* will always choose the shortest. At no speed cost. The speed cost comes with more complex, less direct paths.
Logged
░▒▓█▌2DCraft▐█▓▒░ - The free 2D Minecraft clone!

Karnewarrior

  • Bay Watcher
  • That guy who used to be here all the time
    • View Profile
Re: Doors and walls: worth it?
« Reply #18 on: July 13, 2011, 09:28:41 am »

Without walls, it's not a fort, it's a settlement :P

My understanding was that the more paths a given dwarf has between point A and B, the longer the pathing algorithm takes. So the ideal fort in terms of fps efficiency would have exactly one path from any one single spot to any other.

In some cases, this is true.

It is A* pathfinding nature to head directly to a target, and only spread out the search when an obstical has been hit. (Not the way it's programmed, I know)
There can be any number of paths, but A* will always choose the shortest. At no speed cost. The speed cost comes with more complex, less direct paths.
That's why the main halls in my fort are designated to be High-traffic areas. The Algorithm actually checks the path multiple times if it's normal, even more for low, and a whopping 25 times if it's restricted. High-traffic areas need only a viable path be checked once before the dwarf will take it, meaning it keeps the majority of the traffic in my fortress in the halls and the pathing quick. I get >100 FPS.

Of course it doesn't hurt that my computer is a total beast.
Logged
Thou art I, I art Thou.
The trust you have bestowed upon thy comrade is now reciprocated in turn.
Thou shall be blessed when calling upon personae of the Hangman Arcana.
May this tie bind thee to a brighter future!​
Ikusaba Quest! - Fistfighting space robots for the benefit of your familial bonds to Satan is passe, so you call Sherlock Holmes and ask her to pop by.

Draco18s

  • Bay Watcher
    • View Profile
Re: Doors and walls: worth it?
« Reply #19 on: July 13, 2011, 09:44:36 am »

That's why the main halls in my fort are designated to be High-traffic areas. The Algorithm actually checks the path multiple times if it's normal, even more for low, and a whopping 25 times if it's restricted. High-traffic areas need only a viable path be checked once before the dwarf will take it, meaning it keeps the majority of the traffic in my fortress in the halls and the pathing quick. I get >100 FPS.

Of course it doesn't hurt that my computer is a total beast.

You don't understand what traffic settings do, do you?

They set the path weight of the tile, such that the "calculated distance" a tile has is increased by the weight (in addition to the "calculated distance" so far).  What a path weight of 2 means is that the A* will check 2 "high traffic" tiles before 1 normal.  And 12 or 13 normal tiles before checking a single restricted tile.

It's not that the algorithm runs more, it's that it is weighted to prefer certain tiles.

Here's a basic lecture:
http://www.cs.cmu.edu/~motionplanning/lecture/Asearch_v8.pdf
Logged
Pages: 1 [2]