The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Dwachs on October 20, 2012, 09:00:19 AM

Title: fabrikbauer - speedup
Post by: Dwachs on October 20, 2012, 09:00:19 AM
Here is a patch that should accelerate industry placement. In current code, first suitable places are searched, and then one is chosen randomly. Patch reverses the order: first the search starts at a random location, and then the first suitable location is returned. Please test :)
Title: Re: fabrikbauer - speedup
Post by: prissi on October 20, 2012, 08:02:48 PM
When running out of places I did not see much change. Otherwise it is indeed much faster.

SOmehow I think the clustering (radius) stll needs to be more map dependent.

EDIT: Please submit.
Title: Re: fabrikbauer - speedup
Post by: TurfIt on October 20, 2012, 10:19:07 PM
 :thumbsup:  Looks good.