Possibly, I'll need to do some more testing, and I just realized I was
testing with a debug compile, which also might invalidate some of the
results.  Finally the last copy/divide operation might be handleable by an
intrinsic, so I'll look into that.
On May 16, 2013 2:18 AM, "fergus-dall" <notifications@github.com> wrote:

> In game.cpp:
>
> >      }
> > -    newscent[x][y] /= (squares_used + 1);
> > +    */
> > +    // Unrolled for performance.  The above block is the rolled up equivalent.
>
> Wouldn't it be easier to set an optimization flag and get the compiler to
> do the loop unrolling?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/TheDarklingWolf/Cataclysm-DDA/pull/1038/files#r4250247>
> .
>