ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/micropather.h
(Generate patch)

Comparing deliantra/server/include/micropather.h (file contents):
Revision 1.2 by root, Mon Jun 11 21:38:14 2007 UTC vs.
Revision 1.3 by root, Mon Jun 11 21:41:55 2007 UTC

193 @enum MAX_CACHE. If you want to optimize "down deep" this is the way 193 @enum MAX_CACHE. If you want to optimize "down deep" this is the way
194 to go. MAX_CACHE determines the number of adjacent nodes cached by 194 to go. MAX_CACHE determines the number of adjacent nodes cached by
195 MicroPather. If your nodes generally have 8 or 3 neighbors (common cases) 195 MicroPather. If your nodes generally have 8 or 3 neighbors (common cases)
196 changing this may increase performance, sometimes dramatically. 196 changing this may increase performance, sometimes dramatically.
197 */ 197 */
198 MAX_CACHE = 4 198 MAX_CACHE = 8
199 }; 199 };
200 // If there are 4 or less adjacent states, they will be cached as *nodes*. 200 // If there are 4 or less adjacent states, they will be cached as *nodes*.
201 NodeCost adjacent[ MAX_CACHE ]; 201 NodeCost adjacent[ MAX_CACHE ];
202 int numAdjacent; // -1 is unknown & needs to be queried 202 int numAdjacent; // -1 is unknown & needs to be queried
203 // 0-4 adjacent is known & in 'adjacent' 203 // 0-4 adjacent is known & in 'adjacent'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines