Page 1 of 2

Precalculating path costs

Posted: 14 Jun 2006, 16:25
by fbo
Whenever I try a new mod/map combination, Spring has to do something very time consuming called "Calculating estimate path costs" which seems to be cached ( in the maps/paths directory ).

Is there a chance to precalculate those paths costs in batch mode?

fbo

Posted: 14 Jun 2006, 16:36
by Forboding Angel
MTR +1 Woot!!!

Posted: 14 Jun 2006, 17:05
by NOiZE
someone make a patch

Re: Precalculating path costs

Posted: 14 Jun 2006, 17:33
by esteroth12
fbo wrote:Whenever I try a new mod/map combination, Spring has to do something very time consuming called "Calculating estimate path costs" which seems to be cached ( in the maps/paths directory ).

Is there a chance to precalculate those paths costs in batch mode?

fbo
its a lot faster in the next version...
NOiZe wrote:someone make a patch
its already done! :P

Re: Precalculating path costs

Posted: 14 Jun 2006, 17:44
by Tobi
esteroth12 wrote: its a lot faster in the next version...

its already done! :P
Where does this info come from? Can you give me a link to the revision in which the map estimating was optimized? I'm pretty sure it's a hoax... :roll:, I don't remember seeing anything about this in SVN log.

And give me a link to the patch too :wink:

Posted: 14 Jun 2006, 18:03
by esteroth12
well... it seems faster in the test... it may just be the new version of XTA

Posted: 14 Jun 2006, 18:45
by Erom
Screw MTR, this sucker is like WTR.

Posted: 14 Jun 2006, 19:08
by Min3mat
it deserves to be, 3D pathing eats your computer alive and isn't exactly perfect!

Posted: 14 Jun 2006, 19:34
by Forboding Angel
Pathing in the new version is a lot better it seems, so is the rendering process. Can't figure out what exactly has changed, but it's muchly different.

Posted: 14 Jun 2006, 20:48
by LOrDo
So Fbo, just incase you havent picked it up from these guys, this has already been implemented into the next spring. Many other members have complained about it just like you.

Posted: 14 Jun 2006, 21:07
by fbo
Does this mean, when I use the lates svn, it will be faster?

I just wantet to try that, but I got this:

Code: Select all

g++ -o build/rts/Game/GameHelper.o -c -O1 -pipe -march=pentium4 -fvisibility=hidden -pthread -D_REENTRANT -DDIRECT_CONTROL_ALLOWED -D_SZ_ONE_DIRECTORY -DNO_CLIPBOARD -DNO_AVI -DNO_LUA -Irts -Irts/System -I/usr/include -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/python2.4 rts/Game/GameHelper.cpp
rts/Game/GameHelper.cpp: In destructor 'virtual CGameHelper::~CGameHelper()':
rts/Game/GameHelper.cpp:55: error: no suitable 'operator delete' for 'CGameHelper::WaitingDamage'
rts/Game/GameHelper.cpp: In member function 'void CGameHelper::Explosion(float3, const DamageArray&, float, CUnit*, bool, float, bool, CExplosionGenerator*)':
rts/Game/GameHelper.cpp:114: error: no suitable 'operator delete' for 'CGameHelper::WaitingDamage'
rts/Game/GameHelper.cpp: In member function 'void CGameHelper::Update()':
rts/Game/GameHelper.cpp:641: error: no suitable 'operator delete' for 'CGameHelper::WaitingDamage'
rts/Game/GameHelper.cpp:696: confused by earlier errors, bailing out
scons: *** [build/rts/Game/GameHelper.o] Error 1
scons: building terminated because of errors.
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/SCR/ta/spring-svn-0'
make: *** [build-stamp] Fehler 2
I'm not really a C++ guru. Does anyone know, what to do to make spring build on my linux machine?

fbo

Posted: 14 Jun 2006, 22:26
by Neddie
I would love to run a utility overnight to path the 200 maps I have on my HD for all the mods I have...

Posted: 14 Jun 2006, 22:30
by esteroth12
have you paid attantion? the next version of spring is faster... and there is no utility to prepath maps...

Posted: 14 Jun 2006, 23:23
by Neddie
esteroth12 wrote:have you paid attantion? the next version of spring is faster... and there is no utility to prepath maps...
You still haven't backed up that assertion with a link or any evidence, so I dismissed it. Speculation is for the mod and AI forums, not the map forum!

Posted: 14 Jun 2006, 23:31
by Min3mat
its been said a _lot_ recently. if i was you i'd believe it ^^

Posted: 14 Jun 2006, 23:38
by esteroth12
or you can download the new version of spring and test it yourself... :\

Posted: 14 Jun 2006, 23:44
by fbo
esteroth12 wrote:or you can download the new version of spring and test it yourself... :\
That's what I did, but I'm unable to successfully build it :-(

Posted: 15 Jun 2006, 00:29
by Lord JoNil

Posted: 15 Jun 2006, 01:28
by Tim Blokdijk
It's very nice to link the Windows installer, but fbo is a Linux user so he can't use that. :-)

About the compile error, maybe you can drop a message about it on the mailinglist: http://lolut.utbm.info/cgi-bin/mailman/ ... ring-linux

Posted: 15 Jun 2006, 02:05
by Lord JoNil
oh, sorry. :oops: