glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Optimization suggestions (Map::updateLocalGradient())


From: Kai Antweiler
Subject: Re: [glob2-devel] Optimization suggestions (Map::updateLocalGradient())
Date: Wed, 5 Sep 2007 13:06:38 +0200

> Perhaps... I actually learned something additional skills in that area
> myself, doing this.
> But first I'll have to send you the latest results - I got an additional
> 34% speed increase in that function today (and simplified code in
> several places)...
> - I'll be back, presumably tomorrow.

You can ask Steph for an mercurial account.


> Oh, and by the way: what would be helpful when profiling is if you could
> start the game with command-line options saying, "Load this savegame,
> run for $n ticks, and exit" - so that one can measure performance on the
> same amount of work :-)

# glob2 --nox
usage:
--nox <game file name> <number of steps> <number of runs>
zero steps will make the game run until the end.

But this won't load x, so the conditions are not the same as usual.
When I used this, I put an AI in the human team before I saved the game that I
wanted to use.

-- 
Kai Antweiler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]