Attempted another optimization to speed up the short-finding

algorithm, but it's clear it needs a lot more than that.
This commit is contained in:
Tim Edwards 2021-12-31 22:57:54 -05:00
parent abc4b263a5
commit cb27fba5ab
1 changed files with 2 additions and 0 deletions

View File

@ -488,6 +488,7 @@ donesides:
{
tp = SelectDef->cd_planes[p]->pl_hint;
GOTOPOINT(tp, &tile->ti_ll);
SelectDef->cd_planes[p]->pl_hint = tp;
if (tp->ti_client == (ClientData)CLIENTDEFAULT) continue;
if ((int)tp->ti_client < mincost)
{
@ -765,6 +766,7 @@ donesrch:
{
tp = SelectDef->cd_planes[p]->pl_hint;
GOTOPOINT(tp, &tile->ti_ll);
SelectDef->cd_planes[p]->pl_hint = tp;
if (TiGetTypeExact(tp) != TT_SPACE)
{
sd = NewSD(cost + 1, tp, p, GEO_CENTER, lmask);