Commit 01617956 authored by Adam P. Goucher's avatar Adam P. Goucher

When safely far from the boundary, emplace_uint64 can avoid updating neighbours

parent f424ae81
Pipeline #47916644 passed with stages
in 7 minutes and 58 seconds
#ifndef LIFELIB_VERSION /*
__version__=[x.replace('"', '') for x in '''
*/
#define LIFELIB_VERSION "ll2.1.16"
#define LIFELIB_VERSION "ll2.1.17"
// '''.split() if ('ll' in x)][0][2:]
#endif
......@@ -200,7 +200,9 @@
if ((v == 0) || (z >= 2)) { return; }
for (int i = 0; i < 6; i++) { owner->updateNeighbour(this, i); }
if ((dx < 8) || (dx > 16) || (dy < 8) || (dy > H + 2*K - 16)) {
for (int i = 0; i < 6; i++) { owner->updateNeighbour(this, i); }
}
if (!(currentflags & 1)) { owner->popchanged.push_back(this); }
currentflags = 3;
if (updateflags == 0) { owner->modified.push_back(this); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment